From 485ca95787739ef8f3f8f3fda2317eb219162fff Mon Sep 17 00:00:00 2001 From: Nat Elkins Date: Sat, 17 Jan 2026 13:16:33 -0500 Subject: [PATCH 1/8] feat(checkout): add product selection fields to schema Add productId, productPriceId, customAmount, and product fields to BaseCheckoutSchema for the Polar-style selector architecture. Update tests and contract input validation. --- src/contracts/checkout.ts | 9 +++++++++ src/schemas/checkout.ts | 23 +++++++++++++++++++++++ tests/contracts/checkout.test.ts | 19 ++++++++++++++----- tests/index.test.ts | 4 ++++ tests/schemas/checkout.test.ts | 4 ++++ 5 files changed, 54 insertions(+), 5 deletions(-) diff --git a/src/contracts/checkout.ts b/src/contracts/checkout.ts index 2349ed2..2c6b848 100644 --- a/src/contracts/checkout.ts +++ b/src/contracts/checkout.ts @@ -72,6 +72,14 @@ export const ConfirmCheckoutInputSchema = z.object({ * Customer data provided at confirm time. */ customer: CustomerInputSchema.optional(), + /** + * Product selection at confirm time. + * - undefined or [] = keep current selection + * - [{ productId }] = change selection to this product + * - priceAmount required if selected price has amountType: CUSTOM + * + * Currently limited to single selection (max 1 item). + */ products: z .array( z.object({ @@ -79,6 +87,7 @@ export const ConfirmCheckoutInputSchema = z.object({ priceAmount: z.number().optional(), }), ) + .max(1) .optional(), }); diff --git a/src/schemas/checkout.ts b/src/schemas/checkout.ts index 1e90a21..1454e85 100644 --- a/src/schemas/checkout.ts +++ b/src/schemas/checkout.ts @@ -58,6 +58,29 @@ const BaseCheckoutSchema = z.object({ customer: CustomerOutputSchema.nullable(), customerBillingAddress: z.record(z.any()).nullable(), products: z.array(CheckoutProductSchema).nullable(), + /** + * The selected product ID (from the products array). + * For PRODUCTS checkouts, this is the product the customer has chosen. + * null for AMOUNT/TOP_UP checkouts. + */ + productId: z.string().nullable(), + /** + * The selected product price ID. + * References a price from the selected product's prices array. + * null for AMOUNT/TOP_UP checkouts. + */ + productPriceId: z.string().nullable(), + /** + * User-provided amount for CUSTOM price products. + * Only set when the selected price has amountType: CUSTOM. + */ + customAmount: z.number().nullable(), + /** + * The selected product with full details (convenience field). + * Same shape as items in the products array. + * null if no product is selected. + */ + product: CheckoutProductSchema.nullable(), providedAmount: z.number().nullable(), totalAmount: z.number().nullable(), discountAmount: z.number().nullable(), diff --git a/tests/contracts/checkout.test.ts b/tests/contracts/checkout.test.ts index 4336b23..997b968 100644 --- a/tests/contracts/checkout.test.ts +++ b/tests/contracts/checkout.test.ts @@ -205,9 +205,6 @@ describe('Checkout Contracts', () => { productId: 'product_1', priceAmount: 500, }, - { - productId: 'product_2', - }, ], }; @@ -230,8 +227,7 @@ describe('Checkout Contracts', () => { const input = { checkoutId: 'checkout_123', products: [ - { productId: 'product_1' }, - { productId: 'product_2', priceAmount: 1000 }, + { productId: 'product_1', priceAmount: 1000 }, ], }; @@ -239,6 +235,19 @@ describe('Checkout Contracts', () => { expect(result.success).toBe(true); }); + test('should reject products array with more than 1 item', () => { + const input = { + checkoutId: 'checkout_123', + products: [ + { productId: 'product_1' }, + { productId: 'product_2' }, + ], + }; + + const result = ConfirmCheckoutInputSchema.safeParse(input); + expect(result.success).toBe(false); + }); + test('should accept custom fields from confirm input (form fields)', () => { // Custom fields are accepted at confirm time - they come from the form const input = { diff --git a/tests/index.test.ts b/tests/index.test.ts index a17ef18..d7beb3c 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -60,6 +60,10 @@ describe('API Contract Index', () => { currency: 'USD', }], }], + productId: null, + productPriceId: null, + customAmount: null, + product: null, providedAmount: null, totalAmount: null, discountAmount: null, diff --git a/tests/schemas/checkout.test.ts b/tests/schemas/checkout.test.ts index 66ee657..a90d4a3 100644 --- a/tests/schemas/checkout.test.ts +++ b/tests/schemas/checkout.test.ts @@ -23,6 +23,10 @@ const baseCheckoutData = { customer: null, customerBillingAddress: null, products: null, + productId: null, + productPriceId: null, + customAmount: null, + product: null, providedAmount: null, totalAmount: null, discountAmount: null, From cf5461f6f5d95d5a5826f5e03defe71e29530029 Mon Sep 17 00:00:00 2001 From: Nat Elkins Date: Sat, 17 Jan 2026 14:56:49 -0500 Subject: [PATCH 2/8] chore: bump version to 0.1.17 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b53d665..adc15b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@moneydevkit/api-contract", - "version": "0.1.16", + "version": "0.1.17", "description": "API Contract for moneydevkit", "main": "./dist/index.cjs", "module": "./dist/index.js", From 89200b638f610986927d61ddfce2cecfaf355e48 Mon Sep 17 00:00:00 2001 From: Nat Elkins Date: Mon, 19 Jan 2026 15:21:14 -0500 Subject: [PATCH 3/8] feat: add prepare script to build on git install --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index adc15b8..dc4d644 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ }, "scripts": { "build": "tsup", + "prepare": "npm run build", "test": "vitest", "check": "biome check ./src --fix" }, From cd7515a76430cfa17090fc88ef1ec9b26a7a12d2 Mon Sep 17 00:00:00 2001 From: Nat Elkins Date: Mon, 19 Jan 2026 15:22:43 -0500 Subject: [PATCH 4/8] chore: include dist for GitHub install --- dist/chunk-22HCL22X.js | 183 + dist/chunk-6M6LFZ3U.js | 7 + dist/chunk-6XWZHZXK.js | 112 + dist/chunk-7EZSTHMJ.js | 183 + dist/chunk-CD4U22RQ.js | 24 + dist/chunk-DVDEDUJU.js | 122 + dist/chunk-IZBMPMWK.js | 112 + dist/chunk-OJKHC5SH.js | 12 + dist/chunk-RZPQSVO3.js | 26 + dist/chunk-TGG53ETU.js | 32 + dist/chunk-WJ6HHWDE.js | 58 + dist/chunk-Y6DXID65.js | 35 + dist/contracts/checkout.cjs | 351 + dist/contracts/checkout.d.cts | 34899 ++++++++++++++++++++ dist/contracts/checkout.d.ts | 34899 ++++++++++++++++++++ dist/contracts/checkout.js | 38 + dist/contracts/onboarding.cjs | 96 + dist/contracts/onboarding.d.cts | 236 + dist/contracts/onboarding.d.ts | 236 + dist/contracts/onboarding.js | 13 + dist/contracts/products.cjs | 65 + dist/contracts/products.d.cts | 285 + dist/contracts/products.d.ts | 285 + dist/contracts/products.js | 15 + dist/index.cjs | 552 + dist/index.d.cts | 15609 +++++++++ dist/index.d.ts | 15609 +++++++++ dist/index.js | 43 + dist/lib/utils.cjs | 37 + dist/lib/utils.d.cts | 40 + dist/lib/utils.d.ts | 40 + dist/lib/utils.js | 8 + dist/schemas/checkout.cjs | 243 + dist/schemas/checkout.d.cts | 7633 +++++ dist/schemas/checkout.d.ts | 7633 +++++ dist/schemas/checkout.js | 19 + dist/schemas/currency.cjs | 31 + dist/schemas/currency.d.cts | 11 + dist/schemas/currency.d.ts | 11 + dist/schemas/currency.js | 6 + dist/schemas/invoice.cjs | 61 + dist/schemas/invoice.d.cts | 118 + dist/schemas/invoice.d.ts | 118 + dist/schemas/invoice.js | 13 + dist/schemas/onboarding.cjs | 87 + dist/schemas/onboarding.d.cts | 118 + dist/schemas/onboarding.d.ts | 118 + dist/schemas/onboarding.js | 16 + dist/schemas/product.cjs | 51 + dist/schemas/product.d.cts | 64 + dist/schemas/product.d.ts | 64 + dist/schemas/product.js | 9 + dist/validation/metadata-validation.cjs | 154 + dist/validation/metadata-validation.d.cts | 19 + dist/validation/metadata-validation.d.ts | 19 + dist/validation/metadata-validation.js | 13 + 56 files changed, 120891 insertions(+) create mode 100644 dist/chunk-22HCL22X.js create mode 100644 dist/chunk-6M6LFZ3U.js create mode 100644 dist/chunk-6XWZHZXK.js create mode 100644 dist/chunk-7EZSTHMJ.js create mode 100644 dist/chunk-CD4U22RQ.js create mode 100644 dist/chunk-DVDEDUJU.js create mode 100644 dist/chunk-IZBMPMWK.js create mode 100644 dist/chunk-OJKHC5SH.js create mode 100644 dist/chunk-RZPQSVO3.js create mode 100644 dist/chunk-TGG53ETU.js create mode 100644 dist/chunk-WJ6HHWDE.js create mode 100644 dist/chunk-Y6DXID65.js create mode 100644 dist/contracts/checkout.cjs create mode 100644 dist/contracts/checkout.d.cts create mode 100644 dist/contracts/checkout.d.ts create mode 100644 dist/contracts/checkout.js create mode 100644 dist/contracts/onboarding.cjs create mode 100644 dist/contracts/onboarding.d.cts create mode 100644 dist/contracts/onboarding.d.ts create mode 100644 dist/contracts/onboarding.js create mode 100644 dist/contracts/products.cjs create mode 100644 dist/contracts/products.d.cts create mode 100644 dist/contracts/products.d.ts create mode 100644 dist/contracts/products.js create mode 100644 dist/index.cjs create mode 100644 dist/index.d.cts create mode 100644 dist/index.d.ts create mode 100644 dist/index.js create mode 100644 dist/lib/utils.cjs create mode 100644 dist/lib/utils.d.cts create mode 100644 dist/lib/utils.d.ts create mode 100644 dist/lib/utils.js create mode 100644 dist/schemas/checkout.cjs create mode 100644 dist/schemas/checkout.d.cts create mode 100644 dist/schemas/checkout.d.ts create mode 100644 dist/schemas/checkout.js create mode 100644 dist/schemas/currency.cjs create mode 100644 dist/schemas/currency.d.cts create mode 100644 dist/schemas/currency.d.ts create mode 100644 dist/schemas/currency.js create mode 100644 dist/schemas/invoice.cjs create mode 100644 dist/schemas/invoice.d.cts create mode 100644 dist/schemas/invoice.d.ts create mode 100644 dist/schemas/invoice.js create mode 100644 dist/schemas/onboarding.cjs create mode 100644 dist/schemas/onboarding.d.cts create mode 100644 dist/schemas/onboarding.d.ts create mode 100644 dist/schemas/onboarding.js create mode 100644 dist/schemas/product.cjs create mode 100644 dist/schemas/product.d.cts create mode 100644 dist/schemas/product.d.ts create mode 100644 dist/schemas/product.js create mode 100644 dist/validation/metadata-validation.cjs create mode 100644 dist/validation/metadata-validation.d.cts create mode 100644 dist/validation/metadata-validation.d.ts create mode 100644 dist/validation/metadata-validation.js diff --git a/dist/chunk-22HCL22X.js b/dist/chunk-22HCL22X.js new file mode 100644 index 0000000..5355e9b --- /dev/null +++ b/dist/chunk-22HCL22X.js @@ -0,0 +1,183 @@ +import { + CheckoutProductSchema +} from "./chunk-CD4U22RQ.js"; +import { + BaseInvoiceSchema, + DynamicAmountPendingInvoiceSchema, + FixedAmountPendingInvoiceSchema, + PaidInvoiceSchema +} from "./chunk-TGG53ETU.js"; +import { + CurrencySchema +} from "./chunk-6M6LFZ3U.js"; + +// src/schemas/checkout.ts +import { z } from "zod"; +var CustomerFieldSchema = z.string().min(1); +var CustomerOutputSchema = z.object({ + name: z.string().nullish(), + email: z.string().email().nullish(), + externalId: z.string().nullish() +}).catchall(z.string()); +var BaseCheckoutSchema = z.object({ + id: z.string(), + createdAt: z.date(), + clientSecret: z.string(), + type: z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]), + status: z.enum([ + "UNCONFIRMED", + "CONFIRMED", + "PENDING_PAYMENT", + "PAYMENT_RECEIVED", + "EXPIRED" + ]), + organizationId: z.string(), + expiresAt: z.date(), + userMetadata: z.record(z.any()).nullable(), + customFieldData: z.record(z.any()).nullable(), + currency: CurrencySchema, + allowDiscountCodes: z.boolean(), + /** + * Array of customer fields required at checkout. + * @example ['email'] - email required + * @example ['email', 'name'] - both required + */ + requireCustomerData: z.array(CustomerFieldSchema).nullable(), + successUrl: z.string().nullable(), + /** + * Customer data associated with this checkout. + */ + customer: CustomerOutputSchema.nullable(), + customerBillingAddress: z.record(z.any()).nullable(), + products: z.array(CheckoutProductSchema).nullable(), + /** + * The selected product ID (from the products array). + * For PRODUCTS checkouts, this is the product the customer has chosen. + * null for AMOUNT/TOP_UP checkouts. + */ + productId: z.string().nullable(), + /** + * The selected product price ID. + * References a price from the selected product's prices array. + * null for AMOUNT/TOP_UP checkouts. + */ + productPriceId: z.string().nullable(), + /** + * User-provided amount for CUSTOM price products. + * Only set when the selected price has amountType: CUSTOM. + */ + customAmount: z.number().nullable(), + /** + * The selected product with full details (convenience field). + * Same shape as items in the products array. + * null if no product is selected. + */ + product: CheckoutProductSchema.nullable(), + providedAmount: z.number().nullable(), + totalAmount: z.number().nullable(), + discountAmount: z.number().nullable(), + netAmount: z.number().nullable(), + taxAmount: z.number().nullable(), + invoiceAmountSats: z.number().nullable(), + invoiceScid: z.string().nullable(), + btcPrice: z.number().nullable(), + invoice: BaseInvoiceSchema.nullable() +}); +var AmountFieldsSchema = z.object({ + totalAmount: z.number(), + discountAmount: z.number(), + netAmount: z.number(), + taxAmount: z.number(), + invoiceAmountSats: z.number(), + btcPrice: z.number() +}); +var ExpiredCheckoutSchema = BaseCheckoutSchema.extend({ + status: z.literal("EXPIRED"), + type: z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]) +}); +var UnconfirmedCheckoutSchema = z.discriminatedUnion("type", [ + BaseCheckoutSchema.extend({ + status: z.literal("UNCONFIRMED"), + type: z.literal("PRODUCTS"), + products: z.array(CheckoutProductSchema).nonempty() + }), + BaseCheckoutSchema.extend({ + status: z.literal("UNCONFIRMED"), + type: z.literal("AMOUNT"), + providedAmount: z.number() + }), + BaseCheckoutSchema.extend({ + status: z.literal("UNCONFIRMED"), + type: z.literal("TOP_UP") + }) +]); +var ConfirmedCheckoutSchema = z.discriminatedUnion("type", [ + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: z.literal("CONFIRMED"), + type: z.literal("PRODUCTS"), + products: z.array(CheckoutProductSchema).nonempty() + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: z.literal("CONFIRMED"), + type: z.literal("AMOUNT"), + providedAmount: z.number() + }), + BaseCheckoutSchema.extend({ + status: z.literal("CONFIRMED"), + type: z.literal("TOP_UP") + }) +]); +var PendingPaymentCheckoutSchema = z.discriminatedUnion("type", [ + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: z.literal("PENDING_PAYMENT"), + type: z.literal("PRODUCTS"), + products: z.array(CheckoutProductSchema).nonempty(), + invoice: FixedAmountPendingInvoiceSchema + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: z.literal("PENDING_PAYMENT"), + type: z.literal("AMOUNT"), + providedAmount: z.number(), + invoice: FixedAmountPendingInvoiceSchema + }), + BaseCheckoutSchema.extend({ + status: z.literal("PENDING_PAYMENT"), + type: z.literal("TOP_UP"), + invoice: DynamicAmountPendingInvoiceSchema + }) +]); +var PaymentReceivedCheckoutSchema = z.discriminatedUnion("type", [ + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: z.literal("PAYMENT_RECEIVED"), + type: z.literal("PRODUCTS"), + products: z.array(CheckoutProductSchema).nonempty(), + invoice: PaidInvoiceSchema + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: z.literal("PAYMENT_RECEIVED"), + type: z.literal("AMOUNT"), + providedAmount: z.number(), + invoice: PaidInvoiceSchema + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: z.literal("PAYMENT_RECEIVED"), + type: z.literal("TOP_UP"), + invoice: PaidInvoiceSchema + }) +]); +var CheckoutSchema = z.union([ + UnconfirmedCheckoutSchema, + ConfirmedCheckoutSchema, + PendingPaymentCheckoutSchema, + PaymentReceivedCheckoutSchema, + ExpiredCheckoutSchema +]); + +export { + ExpiredCheckoutSchema, + UnconfirmedCheckoutSchema, + ConfirmedCheckoutSchema, + PendingPaymentCheckoutSchema, + PaymentReceivedCheckoutSchema, + CheckoutSchema +}; diff --git a/dist/chunk-6M6LFZ3U.js b/dist/chunk-6M6LFZ3U.js new file mode 100644 index 0000000..d572c5d --- /dev/null +++ b/dist/chunk-6M6LFZ3U.js @@ -0,0 +1,7 @@ +// src/schemas/currency.ts +import { z } from "zod"; +var CurrencySchema = z.enum(["USD", "SAT"]); + +export { + CurrencySchema +}; diff --git a/dist/chunk-6XWZHZXK.js b/dist/chunk-6XWZHZXK.js new file mode 100644 index 0000000..3b58fb4 --- /dev/null +++ b/dist/chunk-6XWZHZXK.js @@ -0,0 +1,112 @@ +import { + CheckoutSchema +} from "./chunk-7EZSTHMJ.js"; +import { + CurrencySchema +} from "./chunk-6M6LFZ3U.js"; + +// src/contracts/checkout.ts +import { oc } from "@orpc/contract"; +import { z } from "zod"; +var emptyStringToUndefined = z.string().transform((val) => val.trim() === "" ? void 0 : val); +var emailOrEmpty = z.string().email().optional().or(z.literal("")); +var CustomerFieldSchema = z.string().min(1); +var CustomerInputSchema = z.object({ + name: emptyStringToUndefined.optional(), + email: emailOrEmpty, + externalId: emptyStringToUndefined.optional() +}).catchall(z.string()); +var CreateCheckoutInputSchema = z.object({ + nodeId: z.string(), + amount: z.number().optional(), + currency: CurrencySchema.optional(), + products: z.array(z.string()).optional(), + successUrl: z.string().optional(), + allowDiscountCodes: z.boolean().optional(), + metadata: z.record(z.string(), z.any()).optional(), + /** + * Customer data for this checkout. + */ + customer: CustomerInputSchema.optional(), + /** + * Array of customer fields to require at checkout. + * If a field is listed here and not provided, the checkout UI will prompt for it. + * @example ['email'] - require email + * @example ['email', 'name'] - require both + */ + requireCustomerData: z.array(CustomerFieldSchema).optional() +}); +var ConfirmCheckoutInputSchema = z.object({ + checkoutId: z.string(), + /** + * Customer data provided at confirm time. + */ + customer: CustomerInputSchema.optional(), + /** + * Product selection at confirm time. + * - undefined or [] = keep current selection + * - [{ productId }] = change selection to this product + * - priceAmount required if selected price has amountType: CUSTOM + * + * Currently limited to single selection (max 1 item). + */ + products: z.array( + z.object({ + productId: z.string(), + priceAmount: z.number().optional() + }) + ).max(1).optional() +}); +var ApplyDiscountCodeInputSchema = z.object({ + checkoutId: z.string(), + discountCode: z.string() +}); +var RegisterInvoiceInputSchema = z.object({ + nodeId: z.string(), + scid: z.string(), + checkoutId: z.string(), + invoice: z.string(), + paymentHash: z.string(), + invoiceExpiresAt: z.date() +}); +var PaymentReceivedInputSchema = z.object({ + payments: z.array( + z.object({ + paymentHash: z.string(), + amountSats: z.number(), + sandbox: z.boolean().default(false) + }) + ) +}); +var GetCheckoutInputSchema = z.object({ id: z.string() }); +var createCheckoutContract = oc.input(CreateCheckoutInputSchema).output(CheckoutSchema); +var applyDiscountCodeContract = oc.input(ApplyDiscountCodeInputSchema).output(CheckoutSchema); +var confirmCheckoutContract = oc.input(ConfirmCheckoutInputSchema).output(CheckoutSchema); +var registerInvoiceContract = oc.input(RegisterInvoiceInputSchema).output(CheckoutSchema); +var getCheckoutContract = oc.input(GetCheckoutInputSchema).output(CheckoutSchema); +var paymentReceivedContract = oc.input(PaymentReceivedInputSchema).output(z.object({ ok: z.boolean() })); +var checkout = { + get: getCheckoutContract, + create: createCheckoutContract, + confirm: confirmCheckoutContract, + registerInvoice: registerInvoiceContract, + paymentReceived: paymentReceivedContract +}; + +export { + CustomerFieldSchema, + CustomerInputSchema, + CreateCheckoutInputSchema, + ConfirmCheckoutInputSchema, + ApplyDiscountCodeInputSchema, + RegisterInvoiceInputSchema, + PaymentReceivedInputSchema, + GetCheckoutInputSchema, + createCheckoutContract, + applyDiscountCodeContract, + confirmCheckoutContract, + registerInvoiceContract, + getCheckoutContract, + paymentReceivedContract, + checkout +}; diff --git a/dist/chunk-7EZSTHMJ.js b/dist/chunk-7EZSTHMJ.js new file mode 100644 index 0000000..70b8941 --- /dev/null +++ b/dist/chunk-7EZSTHMJ.js @@ -0,0 +1,183 @@ +import { + BaseInvoiceSchema, + DynamicAmountPendingInvoiceSchema, + FixedAmountPendingInvoiceSchema, + PaidInvoiceSchema +} from "./chunk-TGG53ETU.js"; +import { + CheckoutProductSchema +} from "./chunk-CD4U22RQ.js"; +import { + CurrencySchema +} from "./chunk-6M6LFZ3U.js"; + +// src/schemas/checkout.ts +import { z } from "zod"; +var CustomerFieldSchema = z.string().min(1); +var CustomerOutputSchema = z.object({ + name: z.string().nullish(), + email: z.string().email().nullish(), + externalId: z.string().nullish() +}).catchall(z.string()); +var BaseCheckoutSchema = z.object({ + id: z.string(), + createdAt: z.date(), + clientSecret: z.string(), + type: z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]), + status: z.enum([ + "UNCONFIRMED", + "CONFIRMED", + "PENDING_PAYMENT", + "PAYMENT_RECEIVED", + "EXPIRED" + ]), + organizationId: z.string(), + expiresAt: z.date(), + userMetadata: z.record(z.any()).nullable(), + customFieldData: z.record(z.any()).nullable(), + currency: CurrencySchema, + allowDiscountCodes: z.boolean(), + /** + * Array of customer fields required at checkout. + * @example ['email'] - email required + * @example ['email', 'name'] - both required + */ + requireCustomerData: z.array(CustomerFieldSchema).nullable(), + successUrl: z.string().nullable(), + /** + * Customer data associated with this checkout. + */ + customer: CustomerOutputSchema.nullable(), + customerBillingAddress: z.record(z.any()).nullable(), + products: z.array(CheckoutProductSchema).nullable(), + /** + * The selected product ID (from the products array). + * For PRODUCTS checkouts, this is the product the customer has chosen. + * null for AMOUNT/TOP_UP checkouts. + */ + productId: z.string().nullable(), + /** + * The selected product price ID. + * References a price from the selected product's prices array. + * null for AMOUNT/TOP_UP checkouts. + */ + productPriceId: z.string().nullable(), + /** + * User-provided amount for CUSTOM price products. + * Only set when the selected price has amountType: CUSTOM. + */ + customAmount: z.number().nullable(), + /** + * The selected product with full details (convenience field). + * Same shape as items in the products array. + * null if no product is selected. + */ + product: CheckoutProductSchema.nullable(), + providedAmount: z.number().nullable(), + totalAmount: z.number().nullable(), + discountAmount: z.number().nullable(), + netAmount: z.number().nullable(), + taxAmount: z.number().nullable(), + invoiceAmountSats: z.number().nullable(), + invoiceScid: z.string().nullable(), + btcPrice: z.number().nullable(), + invoice: BaseInvoiceSchema.nullable() +}); +var AmountFieldsSchema = z.object({ + totalAmount: z.number(), + discountAmount: z.number(), + netAmount: z.number(), + taxAmount: z.number(), + invoiceAmountSats: z.number(), + btcPrice: z.number() +}); +var ExpiredCheckoutSchema = BaseCheckoutSchema.extend({ + status: z.literal("EXPIRED"), + type: z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]) +}); +var UnconfirmedCheckoutSchema = z.discriminatedUnion("type", [ + BaseCheckoutSchema.extend({ + status: z.literal("UNCONFIRMED"), + type: z.literal("PRODUCTS"), + products: z.array(CheckoutProductSchema).nonempty() + }), + BaseCheckoutSchema.extend({ + status: z.literal("UNCONFIRMED"), + type: z.literal("AMOUNT"), + providedAmount: z.number() + }), + BaseCheckoutSchema.extend({ + status: z.literal("UNCONFIRMED"), + type: z.literal("TOP_UP") + }) +]); +var ConfirmedCheckoutSchema = z.discriminatedUnion("type", [ + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: z.literal("CONFIRMED"), + type: z.literal("PRODUCTS"), + products: z.array(CheckoutProductSchema).nonempty() + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: z.literal("CONFIRMED"), + type: z.literal("AMOUNT"), + providedAmount: z.number() + }), + BaseCheckoutSchema.extend({ + status: z.literal("CONFIRMED"), + type: z.literal("TOP_UP") + }) +]); +var PendingPaymentCheckoutSchema = z.discriminatedUnion("type", [ + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: z.literal("PENDING_PAYMENT"), + type: z.literal("PRODUCTS"), + products: z.array(CheckoutProductSchema).nonempty(), + invoice: FixedAmountPendingInvoiceSchema + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: z.literal("PENDING_PAYMENT"), + type: z.literal("AMOUNT"), + providedAmount: z.number(), + invoice: FixedAmountPendingInvoiceSchema + }), + BaseCheckoutSchema.extend({ + status: z.literal("PENDING_PAYMENT"), + type: z.literal("TOP_UP"), + invoice: DynamicAmountPendingInvoiceSchema + }) +]); +var PaymentReceivedCheckoutSchema = z.discriminatedUnion("type", [ + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: z.literal("PAYMENT_RECEIVED"), + type: z.literal("PRODUCTS"), + products: z.array(CheckoutProductSchema).nonempty(), + invoice: PaidInvoiceSchema + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: z.literal("PAYMENT_RECEIVED"), + type: z.literal("AMOUNT"), + providedAmount: z.number(), + invoice: PaidInvoiceSchema + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: z.literal("PAYMENT_RECEIVED"), + type: z.literal("TOP_UP"), + invoice: PaidInvoiceSchema + }) +]); +var CheckoutSchema = z.union([ + UnconfirmedCheckoutSchema, + ConfirmedCheckoutSchema, + PendingPaymentCheckoutSchema, + PaymentReceivedCheckoutSchema, + ExpiredCheckoutSchema +]); + +export { + ExpiredCheckoutSchema, + UnconfirmedCheckoutSchema, + ConfirmedCheckoutSchema, + PendingPaymentCheckoutSchema, + PaymentReceivedCheckoutSchema, + CheckoutSchema +}; diff --git a/dist/chunk-CD4U22RQ.js b/dist/chunk-CD4U22RQ.js new file mode 100644 index 0000000..1a4ff5a --- /dev/null +++ b/dist/chunk-CD4U22RQ.js @@ -0,0 +1,24 @@ +import { + CurrencySchema +} from "./chunk-6M6LFZ3U.js"; + +// src/schemas/product.ts +import { z } from "zod"; +var CheckoutProductPriceSchema = z.object({ + id: z.string(), + amountType: z.enum(["FIXED", "CUSTOM", "FREE"]), + priceAmount: z.number().nullable(), + currency: CurrencySchema +}); +var CheckoutProductSchema = z.object({ + id: z.string(), + name: z.string(), + description: z.string().nullable(), + recurringInterval: z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(), + prices: z.array(CheckoutProductPriceSchema) +}); + +export { + CheckoutProductPriceSchema, + CheckoutProductSchema +}; diff --git a/dist/chunk-DVDEDUJU.js b/dist/chunk-DVDEDUJU.js new file mode 100644 index 0000000..899d45a --- /dev/null +++ b/dist/chunk-DVDEDUJU.js @@ -0,0 +1,122 @@ +import { + err, + ok +} from "./chunk-OJKHC5SH.js"; + +// src/validation/metadata-validation.ts +var MAX_METADATA_SIZE_BYTES = 1024; +var MAX_KEY_LENGTH = 100; +var MAX_KEY_COUNT = 50; +var CONTROL_CHAR_PATTERN = /[\x00-\x08\x0B-\x0C\x0E-\x1F]/; +var VALID_KEY_PATTERN = /^[a-zA-Z0-9_-]+$/; +function validateKeyFormat(key) { + if (!VALID_KEY_PATTERN.test(key)) { + const message = key === "" ? "Metadata keys cannot be empty" : `Metadata key "${key}" contains invalid characters. Keys must contain only letters, numbers, underscores, and hyphens.`; + return err({ type: "invalid_key_format", message }); + } + return ok(void 0); +} +function validateKeyLength(key) { + if (key.length > MAX_KEY_LENGTH) { + return err({ + type: "key_too_long", + message: `Metadata key "${key}" exceeds maximum length of ${MAX_KEY_LENGTH} characters` + }); + } + return ok(void 0); +} +function validateNullBytes(key, value) { + if (value.includes("\0")) { + return err({ + type: "control_character", + message: `Metadata value for key "${key}" cannot contain null bytes` + }); + } + return ok(void 0); +} +function validateControlCharacters(key, value) { + if (CONTROL_CHAR_PATTERN.test(value)) { + return err({ + type: "control_character", + message: `Metadata value for key "${key}" cannot contain control characters` + }); + } + return ok(void 0); +} +function validateUtf8Encoding(key, value) { + try { + const encoded = new TextEncoder().encode(value); + new TextDecoder("utf-8", { fatal: true }).decode(encoded); + } catch { + return err({ + type: "invalid_encoding", + message: `Metadata value for key "${key}" contains invalid UTF-8 encoding` + }); + } + return ok(void 0); +} +function validateMetadataSize(metadata) { + const serialized = JSON.stringify(metadata); + const sizeBytes = new TextEncoder().encode(serialized).length; + if (sizeBytes > MAX_METADATA_SIZE_BYTES) { + return err({ + type: "size_exceeded", + message: `Metadata size (${sizeBytes} bytes) exceeds maximum allowed size (${MAX_METADATA_SIZE_BYTES} bytes). To fix this, reduce the size of your metadata values or remove unnecessary fields.` + }); + } + return ok(void 0); +} +function validateKey(key) { + const formatCheck = validateKeyFormat(key); + if (!formatCheck.ok) return formatCheck; + const lengthCheck = validateKeyLength(key); + if (!lengthCheck.ok) return lengthCheck; + return ok(void 0); +} +function validateValue(key, value) { + const nullByteCheck = validateNullBytes(key, value); + if (!nullByteCheck.ok) return nullByteCheck; + const controlCharCheck = validateControlCharacters(key, value); + if (!controlCharCheck.ok) return controlCharCheck; + const encodingCheck = validateUtf8Encoding(key, value); + if (!encodingCheck.ok) return encodingCheck; + return ok(void 0); +} +function validateMetadata(metadata) { + if (!metadata) { + return ok(void 0); + } + const errors = []; + const keyCount = Object.keys(metadata).length; + if (keyCount > MAX_KEY_COUNT) { + errors.push({ + type: "key_count_exceeded", + message: `Metadata contains ${keyCount} keys, which exceeds the maximum of ${MAX_KEY_COUNT} keys` + }); + } + for (const [key, value] of Object.entries(metadata)) { + const keyCheck = validateKey(key); + if (!keyCheck.ok) { + errors.push(keyCheck.error); + } + const valueCheck = validateValue(key, value); + if (!valueCheck.ok) { + errors.push(valueCheck.error); + } + } + const sizeCheck = validateMetadataSize(metadata); + if (!sizeCheck.ok) { + errors.push(sizeCheck.error); + } + if (errors.length > 0) { + return err(errors); + } + return ok(void 0); +} + +export { + MAX_METADATA_SIZE_BYTES, + MAX_KEY_LENGTH, + MAX_KEY_COUNT, + validateMetadata +}; diff --git a/dist/chunk-IZBMPMWK.js b/dist/chunk-IZBMPMWK.js new file mode 100644 index 0000000..7d4c5b2 --- /dev/null +++ b/dist/chunk-IZBMPMWK.js @@ -0,0 +1,112 @@ +import { + CheckoutSchema +} from "./chunk-22HCL22X.js"; +import { + CurrencySchema +} from "./chunk-6M6LFZ3U.js"; + +// src/contracts/checkout.ts +import { oc } from "@orpc/contract"; +import { z } from "zod"; +var emptyStringToUndefined = z.string().transform((val) => val.trim() === "" ? void 0 : val); +var emailOrEmpty = z.string().email().optional().or(z.literal("")); +var CustomerFieldSchema = z.string().min(1); +var CustomerInputSchema = z.object({ + name: emptyStringToUndefined.optional(), + email: emailOrEmpty, + externalId: emptyStringToUndefined.optional() +}).catchall(z.string()); +var CreateCheckoutInputSchema = z.object({ + nodeId: z.string(), + amount: z.number().optional(), + currency: CurrencySchema.optional(), + products: z.array(z.string()).optional(), + successUrl: z.string().optional(), + allowDiscountCodes: z.boolean().optional(), + metadata: z.record(z.string(), z.any()).optional(), + /** + * Customer data for this checkout. + */ + customer: CustomerInputSchema.optional(), + /** + * Array of customer fields to require at checkout. + * If a field is listed here and not provided, the checkout UI will prompt for it. + * @example ['email'] - require email + * @example ['email', 'name'] - require both + */ + requireCustomerData: z.array(CustomerFieldSchema).optional() +}); +var ConfirmCheckoutInputSchema = z.object({ + checkoutId: z.string(), + /** + * Customer data provided at confirm time. + */ + customer: CustomerInputSchema.optional(), + /** + * Product selection at confirm time. + * - undefined or [] = keep current selection + * - [{ productId }] = change selection to this product + * - priceAmount required if selected price has amountType: CUSTOM + * + * Currently limited to single selection (max 1 item). + */ + products: z.array( + z.object({ + productId: z.string(), + priceAmount: z.number().optional() + }) + ).max(1).optional() +}); +var ApplyDiscountCodeInputSchema = z.object({ + checkoutId: z.string(), + discountCode: z.string() +}); +var RegisterInvoiceInputSchema = z.object({ + nodeId: z.string(), + scid: z.string(), + checkoutId: z.string(), + invoice: z.string(), + paymentHash: z.string(), + invoiceExpiresAt: z.date() +}); +var PaymentReceivedInputSchema = z.object({ + payments: z.array( + z.object({ + paymentHash: z.string(), + amountSats: z.number(), + sandbox: z.boolean().default(false) + }) + ) +}); +var GetCheckoutInputSchema = z.object({ id: z.string() }); +var createCheckoutContract = oc.input(CreateCheckoutInputSchema).output(CheckoutSchema); +var applyDiscountCodeContract = oc.input(ApplyDiscountCodeInputSchema).output(CheckoutSchema); +var confirmCheckoutContract = oc.input(ConfirmCheckoutInputSchema).output(CheckoutSchema); +var registerInvoiceContract = oc.input(RegisterInvoiceInputSchema).output(CheckoutSchema); +var getCheckoutContract = oc.input(GetCheckoutInputSchema).output(CheckoutSchema); +var paymentReceivedContract = oc.input(PaymentReceivedInputSchema).output(z.object({ ok: z.boolean() })); +var checkout = { + get: getCheckoutContract, + create: createCheckoutContract, + confirm: confirmCheckoutContract, + registerInvoice: registerInvoiceContract, + paymentReceived: paymentReceivedContract +}; + +export { + CustomerFieldSchema, + CustomerInputSchema, + CreateCheckoutInputSchema, + ConfirmCheckoutInputSchema, + ApplyDiscountCodeInputSchema, + RegisterInvoiceInputSchema, + PaymentReceivedInputSchema, + GetCheckoutInputSchema, + createCheckoutContract, + applyDiscountCodeContract, + confirmCheckoutContract, + registerInvoiceContract, + getCheckoutContract, + paymentReceivedContract, + checkout +}; diff --git a/dist/chunk-OJKHC5SH.js b/dist/chunk-OJKHC5SH.js new file mode 100644 index 0000000..9b2f5ba --- /dev/null +++ b/dist/chunk-OJKHC5SH.js @@ -0,0 +1,12 @@ +// src/lib/utils.ts +function ok(value) { + return { ok: true, value }; +} +function err(error) { + return { ok: false, error }; +} + +export { + ok, + err +}; diff --git a/dist/chunk-RZPQSVO3.js b/dist/chunk-RZPQSVO3.js new file mode 100644 index 0000000..6d68bbe --- /dev/null +++ b/dist/chunk-RZPQSVO3.js @@ -0,0 +1,26 @@ +import { + BootstrapInputSchema, + BootstrapOutputSchema, + PollDeviceAuthInputSchema, + PollDeviceAuthOutputSchema, + StartDeviceAuthInputSchema, + StartDeviceAuthOutputSchema +} from "./chunk-WJ6HHWDE.js"; + +// src/contracts/onboarding.ts +import { oc } from "@orpc/contract"; +var startDeviceAuthContract = oc.input(StartDeviceAuthInputSchema).output(StartDeviceAuthOutputSchema); +var pollDeviceAuthContract = oc.input(PollDeviceAuthInputSchema).output(PollDeviceAuthOutputSchema); +var bootstrapContract = oc.input(BootstrapInputSchema).output(BootstrapOutputSchema); +var onboarding = { + startDeviceAuth: startDeviceAuthContract, + pollDeviceAuth: pollDeviceAuthContract, + bootstrap: bootstrapContract +}; + +export { + startDeviceAuthContract, + pollDeviceAuthContract, + bootstrapContract, + onboarding +}; diff --git a/dist/chunk-TGG53ETU.js b/dist/chunk-TGG53ETU.js new file mode 100644 index 0000000..ddff9ae --- /dev/null +++ b/dist/chunk-TGG53ETU.js @@ -0,0 +1,32 @@ +import { + CurrencySchema +} from "./chunk-6M6LFZ3U.js"; + +// src/schemas/invoice.ts +import { z } from "zod"; +var BaseInvoiceSchema = z.object({ + invoice: z.string(), + expiresAt: z.date(), + paymentHash: z.string(), + amountSats: z.number().nullable(), + amountSatsReceived: z.number().nullable(), + currency: CurrencySchema, + fiatAmount: z.number().nullable(), + btcPrice: z.number().nullable() +}); +var FixedAmountPendingInvoiceSchema = BaseInvoiceSchema.extend({ + amountSats: z.number(), + fiatAmount: z.number(), + btcPrice: z.number() +}); +var DynamicAmountPendingInvoiceSchema = BaseInvoiceSchema; +var PaidInvoiceSchema = FixedAmountPendingInvoiceSchema.extend({ + amountSatsReceived: z.number() +}); + +export { + BaseInvoiceSchema, + FixedAmountPendingInvoiceSchema, + DynamicAmountPendingInvoiceSchema, + PaidInvoiceSchema +}; diff --git a/dist/chunk-WJ6HHWDE.js b/dist/chunk-WJ6HHWDE.js new file mode 100644 index 0000000..fac568e --- /dev/null +++ b/dist/chunk-WJ6HHWDE.js @@ -0,0 +1,58 @@ +// src/schemas/onboarding.ts +import { z } from "zod"; +var StartDeviceAuthInputSchema = z.object({ + clientDisplayName: z.string().optional(), + webhookUrl: z.string().url().optional(), + forceNewWebhook: z.boolean().optional() +}); +var StartDeviceAuthOutputSchema = z.object({ + deviceCode: z.string(), + userCode: z.string(), + verificationUri: z.string().url(), + expiresIn: z.number().int().positive(), + interval: z.number().int().positive() +}); +var PollDeviceAuthInputSchema = z.object({ + deviceCode: z.string() +}); +var PollDeviceAuthOutputSchema = z.discriminatedUnion("status", [ + z.object({ + status: z.literal("pending"), + expiresIn: z.number().int().nonnegative() + }), + z.object({ + status: z.literal("authorized"), + bootstrapToken: z.string(), + expiresIn: z.number().int().nonnegative().optional() + }), + z.object({ + status: z.literal("expired") + }), + z.object({ + status: z.literal("denied") + }) +]); +var BootstrapInputSchema = z.object({ + bootstrapToken: z.string(), + webhookUrl: z.string().url().optional(), + projectName: z.string().optional(), + forceNewWebhook: z.boolean().optional() +}); +var BootstrapOutputSchema = z.object({ + apiKey: z.string(), + apiKeyPreview: z.string(), + apiKeyId: z.string(), + webhookId: z.string(), + webhookSecret: z.string(), + organizationId: z.string(), + webhookUrl: z.string().url() +}); + +export { + StartDeviceAuthInputSchema, + StartDeviceAuthOutputSchema, + PollDeviceAuthInputSchema, + PollDeviceAuthOutputSchema, + BootstrapInputSchema, + BootstrapOutputSchema +}; diff --git a/dist/chunk-Y6DXID65.js b/dist/chunk-Y6DXID65.js new file mode 100644 index 0000000..ad20da6 --- /dev/null +++ b/dist/chunk-Y6DXID65.js @@ -0,0 +1,35 @@ +import { + CurrencySchema +} from "./chunk-6M6LFZ3U.js"; + +// src/contracts/products.ts +import { oc } from "@orpc/contract"; +import { z } from "zod"; +var ProductPriceSchema = z.object({ + id: z.string(), + amountType: z.enum(["FIXED", "CUSTOM", "FREE"]), + priceAmount: z.number().nullable(), + currency: CurrencySchema +}); +var ProductSchema = z.object({ + id: z.string(), + name: z.string(), + description: z.string().nullable(), + recurringInterval: z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(), + prices: z.array(ProductPriceSchema) +}); +var ListProductsOutputSchema = z.object({ + products: z.array(ProductSchema) +}); +var listProductsContract = oc.input(z.object({}).optional()).output(ListProductsOutputSchema); +var products = { + list: listProductsContract +}; + +export { + ProductPriceSchema, + ProductSchema, + ListProductsOutputSchema, + listProductsContract, + products +}; diff --git a/dist/contracts/checkout.cjs b/dist/contracts/checkout.cjs new file mode 100644 index 0000000..0fba1a3 --- /dev/null +++ b/dist/contracts/checkout.cjs @@ -0,0 +1,351 @@ +"use strict"; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/contracts/checkout.ts +var checkout_exports = {}; +__export(checkout_exports, { + ApplyDiscountCodeInputSchema: () => ApplyDiscountCodeInputSchema, + ConfirmCheckoutInputSchema: () => ConfirmCheckoutInputSchema, + CreateCheckoutInputSchema: () => CreateCheckoutInputSchema, + CustomerFieldSchema: () => CustomerFieldSchema2, + CustomerInputSchema: () => CustomerInputSchema, + GetCheckoutInputSchema: () => GetCheckoutInputSchema, + PaymentReceivedInputSchema: () => PaymentReceivedInputSchema, + RegisterInvoiceInputSchema: () => RegisterInvoiceInputSchema, + applyDiscountCodeContract: () => applyDiscountCodeContract, + checkout: () => checkout, + confirmCheckoutContract: () => confirmCheckoutContract, + createCheckoutContract: () => createCheckoutContract, + getCheckoutContract: () => getCheckoutContract, + paymentReceivedContract: () => paymentReceivedContract, + registerInvoiceContract: () => registerInvoiceContract +}); +module.exports = __toCommonJS(checkout_exports); +var import_contract = require("@orpc/contract"); +var import_zod5 = require("zod"); + +// src/schemas/checkout.ts +var import_zod4 = require("zod"); + +// src/schemas/currency.ts +var import_zod = require("zod"); +var CurrencySchema = import_zod.z.enum(["USD", "SAT"]); + +// src/schemas/invoice.ts +var import_zod2 = require("zod"); +var BaseInvoiceSchema = import_zod2.z.object({ + invoice: import_zod2.z.string(), + expiresAt: import_zod2.z.date(), + paymentHash: import_zod2.z.string(), + amountSats: import_zod2.z.number().nullable(), + amountSatsReceived: import_zod2.z.number().nullable(), + currency: CurrencySchema, + fiatAmount: import_zod2.z.number().nullable(), + btcPrice: import_zod2.z.number().nullable() +}); +var FixedAmountPendingInvoiceSchema = BaseInvoiceSchema.extend({ + amountSats: import_zod2.z.number(), + fiatAmount: import_zod2.z.number(), + btcPrice: import_zod2.z.number() +}); +var DynamicAmountPendingInvoiceSchema = BaseInvoiceSchema; +var PaidInvoiceSchema = FixedAmountPendingInvoiceSchema.extend({ + amountSatsReceived: import_zod2.z.number() +}); + +// src/schemas/product.ts +var import_zod3 = require("zod"); +var CheckoutProductPriceSchema = import_zod3.z.object({ + id: import_zod3.z.string(), + amountType: import_zod3.z.enum(["FIXED", "CUSTOM", "FREE"]), + priceAmount: import_zod3.z.number().nullable(), + currency: CurrencySchema +}); +var CheckoutProductSchema = import_zod3.z.object({ + id: import_zod3.z.string(), + name: import_zod3.z.string(), + description: import_zod3.z.string().nullable(), + recurringInterval: import_zod3.z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(), + prices: import_zod3.z.array(CheckoutProductPriceSchema) +}); + +// src/schemas/checkout.ts +var CustomerFieldSchema = import_zod4.z.string().min(1); +var CustomerOutputSchema = import_zod4.z.object({ + name: import_zod4.z.string().nullish(), + email: import_zod4.z.string().email().nullish(), + externalId: import_zod4.z.string().nullish() +}).catchall(import_zod4.z.string()); +var BaseCheckoutSchema = import_zod4.z.object({ + id: import_zod4.z.string(), + createdAt: import_zod4.z.date(), + clientSecret: import_zod4.z.string(), + type: import_zod4.z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]), + status: import_zod4.z.enum([ + "UNCONFIRMED", + "CONFIRMED", + "PENDING_PAYMENT", + "PAYMENT_RECEIVED", + "EXPIRED" + ]), + organizationId: import_zod4.z.string(), + expiresAt: import_zod4.z.date(), + userMetadata: import_zod4.z.record(import_zod4.z.any()).nullable(), + customFieldData: import_zod4.z.record(import_zod4.z.any()).nullable(), + currency: CurrencySchema, + allowDiscountCodes: import_zod4.z.boolean(), + /** + * Array of customer fields required at checkout. + * @example ['email'] - email required + * @example ['email', 'name'] - both required + */ + requireCustomerData: import_zod4.z.array(CustomerFieldSchema).nullable(), + successUrl: import_zod4.z.string().nullable(), + /** + * Customer data associated with this checkout. + */ + customer: CustomerOutputSchema.nullable(), + customerBillingAddress: import_zod4.z.record(import_zod4.z.any()).nullable(), + products: import_zod4.z.array(CheckoutProductSchema).nullable(), + /** + * The selected product ID (from the products array). + * For PRODUCTS checkouts, this is the product the customer has chosen. + * null for AMOUNT/TOP_UP checkouts. + */ + productId: import_zod4.z.string().nullable(), + /** + * The selected product price ID. + * References a price from the selected product's prices array. + * null for AMOUNT/TOP_UP checkouts. + */ + productPriceId: import_zod4.z.string().nullable(), + /** + * User-provided amount for CUSTOM price products. + * Only set when the selected price has amountType: CUSTOM. + */ + customAmount: import_zod4.z.number().nullable(), + /** + * The selected product with full details (convenience field). + * Same shape as items in the products array. + * null if no product is selected. + */ + product: CheckoutProductSchema.nullable(), + providedAmount: import_zod4.z.number().nullable(), + totalAmount: import_zod4.z.number().nullable(), + discountAmount: import_zod4.z.number().nullable(), + netAmount: import_zod4.z.number().nullable(), + taxAmount: import_zod4.z.number().nullable(), + invoiceAmountSats: import_zod4.z.number().nullable(), + invoiceScid: import_zod4.z.string().nullable(), + btcPrice: import_zod4.z.number().nullable(), + invoice: BaseInvoiceSchema.nullable() +}); +var AmountFieldsSchema = import_zod4.z.object({ + totalAmount: import_zod4.z.number(), + discountAmount: import_zod4.z.number(), + netAmount: import_zod4.z.number(), + taxAmount: import_zod4.z.number(), + invoiceAmountSats: import_zod4.z.number(), + btcPrice: import_zod4.z.number() +}); +var ExpiredCheckoutSchema = BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("EXPIRED"), + type: import_zod4.z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]) +}); +var UnconfirmedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ + BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("UNCONFIRMED"), + type: import_zod4.z.literal("PRODUCTS"), + products: import_zod4.z.array(CheckoutProductSchema).nonempty() + }), + BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("UNCONFIRMED"), + type: import_zod4.z.literal("AMOUNT"), + providedAmount: import_zod4.z.number() + }), + BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("UNCONFIRMED"), + type: import_zod4.z.literal("TOP_UP") + }) +]); +var ConfirmedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("CONFIRMED"), + type: import_zod4.z.literal("PRODUCTS"), + products: import_zod4.z.array(CheckoutProductSchema).nonempty() + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("CONFIRMED"), + type: import_zod4.z.literal("AMOUNT"), + providedAmount: import_zod4.z.number() + }), + BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("CONFIRMED"), + type: import_zod4.z.literal("TOP_UP") + }) +]); +var PendingPaymentCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("PENDING_PAYMENT"), + type: import_zod4.z.literal("PRODUCTS"), + products: import_zod4.z.array(CheckoutProductSchema).nonempty(), + invoice: FixedAmountPendingInvoiceSchema + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("PENDING_PAYMENT"), + type: import_zod4.z.literal("AMOUNT"), + providedAmount: import_zod4.z.number(), + invoice: FixedAmountPendingInvoiceSchema + }), + BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("PENDING_PAYMENT"), + type: import_zod4.z.literal("TOP_UP"), + invoice: DynamicAmountPendingInvoiceSchema + }) +]); +var PaymentReceivedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("PAYMENT_RECEIVED"), + type: import_zod4.z.literal("PRODUCTS"), + products: import_zod4.z.array(CheckoutProductSchema).nonempty(), + invoice: PaidInvoiceSchema + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("PAYMENT_RECEIVED"), + type: import_zod4.z.literal("AMOUNT"), + providedAmount: import_zod4.z.number(), + invoice: PaidInvoiceSchema + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("PAYMENT_RECEIVED"), + type: import_zod4.z.literal("TOP_UP"), + invoice: PaidInvoiceSchema + }) +]); +var CheckoutSchema = import_zod4.z.union([ + UnconfirmedCheckoutSchema, + ConfirmedCheckoutSchema, + PendingPaymentCheckoutSchema, + PaymentReceivedCheckoutSchema, + ExpiredCheckoutSchema +]); + +// src/contracts/checkout.ts +var emptyStringToUndefined = import_zod5.z.string().transform((val) => val.trim() === "" ? void 0 : val); +var emailOrEmpty = import_zod5.z.string().email().optional().or(import_zod5.z.literal("")); +var CustomerFieldSchema2 = import_zod5.z.string().min(1); +var CustomerInputSchema = import_zod5.z.object({ + name: emptyStringToUndefined.optional(), + email: emailOrEmpty, + externalId: emptyStringToUndefined.optional() +}).catchall(import_zod5.z.string()); +var CreateCheckoutInputSchema = import_zod5.z.object({ + nodeId: import_zod5.z.string(), + amount: import_zod5.z.number().optional(), + currency: CurrencySchema.optional(), + products: import_zod5.z.array(import_zod5.z.string()).optional(), + successUrl: import_zod5.z.string().optional(), + allowDiscountCodes: import_zod5.z.boolean().optional(), + metadata: import_zod5.z.record(import_zod5.z.string(), import_zod5.z.any()).optional(), + /** + * Customer data for this checkout. + */ + customer: CustomerInputSchema.optional(), + /** + * Array of customer fields to require at checkout. + * If a field is listed here and not provided, the checkout UI will prompt for it. + * @example ['email'] - require email + * @example ['email', 'name'] - require both + */ + requireCustomerData: import_zod5.z.array(CustomerFieldSchema2).optional() +}); +var ConfirmCheckoutInputSchema = import_zod5.z.object({ + checkoutId: import_zod5.z.string(), + /** + * Customer data provided at confirm time. + */ + customer: CustomerInputSchema.optional(), + /** + * Product selection at confirm time. + * - undefined or [] = keep current selection + * - [{ productId }] = change selection to this product + * - priceAmount required if selected price has amountType: CUSTOM + * + * Currently limited to single selection (max 1 item). + */ + products: import_zod5.z.array( + import_zod5.z.object({ + productId: import_zod5.z.string(), + priceAmount: import_zod5.z.number().optional() + }) + ).max(1).optional() +}); +var ApplyDiscountCodeInputSchema = import_zod5.z.object({ + checkoutId: import_zod5.z.string(), + discountCode: import_zod5.z.string() +}); +var RegisterInvoiceInputSchema = import_zod5.z.object({ + nodeId: import_zod5.z.string(), + scid: import_zod5.z.string(), + checkoutId: import_zod5.z.string(), + invoice: import_zod5.z.string(), + paymentHash: import_zod5.z.string(), + invoiceExpiresAt: import_zod5.z.date() +}); +var PaymentReceivedInputSchema = import_zod5.z.object({ + payments: import_zod5.z.array( + import_zod5.z.object({ + paymentHash: import_zod5.z.string(), + amountSats: import_zod5.z.number(), + sandbox: import_zod5.z.boolean().default(false) + }) + ) +}); +var GetCheckoutInputSchema = import_zod5.z.object({ id: import_zod5.z.string() }); +var createCheckoutContract = import_contract.oc.input(CreateCheckoutInputSchema).output(CheckoutSchema); +var applyDiscountCodeContract = import_contract.oc.input(ApplyDiscountCodeInputSchema).output(CheckoutSchema); +var confirmCheckoutContract = import_contract.oc.input(ConfirmCheckoutInputSchema).output(CheckoutSchema); +var registerInvoiceContract = import_contract.oc.input(RegisterInvoiceInputSchema).output(CheckoutSchema); +var getCheckoutContract = import_contract.oc.input(GetCheckoutInputSchema).output(CheckoutSchema); +var paymentReceivedContract = import_contract.oc.input(PaymentReceivedInputSchema).output(import_zod5.z.object({ ok: import_zod5.z.boolean() })); +var checkout = { + get: getCheckoutContract, + create: createCheckoutContract, + confirm: confirmCheckoutContract, + registerInvoice: registerInvoiceContract, + paymentReceived: paymentReceivedContract +}; +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + ApplyDiscountCodeInputSchema, + ConfirmCheckoutInputSchema, + CreateCheckoutInputSchema, + CustomerFieldSchema, + CustomerInputSchema, + GetCheckoutInputSchema, + PaymentReceivedInputSchema, + RegisterInvoiceInputSchema, + applyDiscountCodeContract, + checkout, + confirmCheckoutContract, + createCheckoutContract, + getCheckoutContract, + paymentReceivedContract, + registerInvoiceContract +}); diff --git a/dist/contracts/checkout.d.cts b/dist/contracts/checkout.d.cts new file mode 100644 index 0000000..33a0bc9 --- /dev/null +++ b/dist/contracts/checkout.d.cts @@ -0,0 +1,34899 @@ +import * as _orpc_contract from '@orpc/contract'; +import { z } from 'zod'; + +/** + * Valid fields that can be required at checkout time. + * - Standard fields: 'email', 'name' (checked against customer.email/name) + * - Any other string is a custom field (checked against customer[field]) + * + * @example ['email'] - require email + * @example ['email', 'name'] - require both email and name + * @example ['email', 'company'] - require email and company + */ +declare const CustomerFieldSchema: z.ZodString; +type CustomerField = string; +/** + * Customer data object for checkout. + * Flat structure - standard fields (name, email, externalId) plus any custom string fields. + * Empty strings are treated as undefined (not provided). + * + * @example { name: "John", email: "john@example.com", externalId: "user_123", company: "Acme" } + */ +declare const CustomerInputSchema: z.ZodObject<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; +}, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; +}, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; +}, z.ZodString, "strip">>; +type CustomerInput = z.infer; +declare const CreateCheckoutInputSchema: z.ZodObject<{ + nodeId: z.ZodString; + amount: z.ZodOptional; + currency: z.ZodOptional>; + products: z.ZodOptional>; + successUrl: z.ZodOptional; + allowDiscountCodes: z.ZodOptional; + metadata: z.ZodOptional>; + /** + * Customer data for this checkout. + */ + customer: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + /** + * Array of customer fields to require at checkout. + * If a field is listed here and not provided, the checkout UI will prompt for it. + * @example ['email'] - require email + * @example ['email', 'name'] - require both + */ + requireCustomerData: z.ZodOptional>; +}, "strip", z.ZodTypeAny, { + nodeId: string; + amount?: number | undefined; + currency?: "USD" | "SAT" | undefined; + products?: string[] | undefined; + successUrl?: string | undefined; + allowDiscountCodes?: boolean | undefined; + metadata?: Record | undefined; + customer?: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; + requireCustomerData?: string[] | undefined; +}, { + nodeId: string; + amount?: number | undefined; + currency?: "USD" | "SAT" | undefined; + products?: string[] | undefined; + successUrl?: string | undefined; + allowDiscountCodes?: boolean | undefined; + metadata?: Record | undefined; + customer?: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; + requireCustomerData?: string[] | undefined; +}>; +declare const ConfirmCheckoutInputSchema: z.ZodObject<{ + checkoutId: z.ZodString; + /** + * Customer data provided at confirm time. + */ + customer: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + /** + * Product selection at confirm time. + * - undefined or [] = keep current selection + * - [{ productId }] = change selection to this product + * - priceAmount required if selected price has amountType: CUSTOM + * + * Currently limited to single selection (max 1 item). + */ + products: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + productId: string; + priceAmount?: number | undefined; + }, { + productId: string; + priceAmount?: number | undefined; + }>, "many">>; +}, "strip", z.ZodTypeAny, { + checkoutId: string; + products?: { + productId: string; + priceAmount?: number | undefined; + }[] | undefined; + customer?: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; +}, { + checkoutId: string; + products?: { + productId: string; + priceAmount?: number | undefined; + }[] | undefined; + customer?: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; +}>; +declare const ApplyDiscountCodeInputSchema: z.ZodObject<{ + checkoutId: z.ZodString; + discountCode: z.ZodString; +}, "strip", z.ZodTypeAny, { + checkoutId: string; + discountCode: string; +}, { + checkoutId: string; + discountCode: string; +}>; +declare const RegisterInvoiceInputSchema: z.ZodObject<{ + nodeId: z.ZodString; + scid: z.ZodString; + checkoutId: z.ZodString; + invoice: z.ZodString; + paymentHash: z.ZodString; + invoiceExpiresAt: z.ZodDate; +}, "strip", z.ZodTypeAny, { + nodeId: string; + checkoutId: string; + scid: string; + invoice: string; + paymentHash: string; + invoiceExpiresAt: Date; +}, { + nodeId: string; + checkoutId: string; + scid: string; + invoice: string; + paymentHash: string; + invoiceExpiresAt: Date; +}>; +declare const PaymentReceivedInputSchema: z.ZodObject<{ + payments: z.ZodArray; + }, "strip", z.ZodTypeAny, { + paymentHash: string; + amountSats: number; + sandbox: boolean; + }, { + paymentHash: string; + amountSats: number; + sandbox?: boolean | undefined; + }>, "many">; +}, "strip", z.ZodTypeAny, { + payments: { + paymentHash: string; + amountSats: number; + sandbox: boolean; + }[]; +}, { + payments: { + paymentHash: string; + amountSats: number; + sandbox?: boolean | undefined; + }[]; +}>; +declare const GetCheckoutInputSchema: z.ZodObject<{ + id: z.ZodString; +}, "strip", z.ZodTypeAny, { + id: string; +}, { + id: string; +}>; +type CreateCheckout = z.infer; +type ConfirmCheckout = z.infer; +type RegisterInvoice = z.infer; +type PaymentReceived = z.infer; +declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWithInputOutput; + currency: z.ZodOptional>; + products: z.ZodOptional>; + successUrl: z.ZodOptional; + allowDiscountCodes: z.ZodOptional; + metadata: z.ZodOptional>; + /** + * Customer data for this checkout. + */ + customer: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + /** + * Array of customer fields to require at checkout. + * If a field is listed here and not provided, the checkout UI will prompt for it. + * @example ['email'] - require email + * @example ['email', 'name'] - require both + */ + requireCustomerData: z.ZodOptional>; +}, "strip", z.ZodTypeAny, { + nodeId: string; + amount?: number | undefined; + currency?: "USD" | "SAT" | undefined; + products?: string[] | undefined; + successUrl?: string | undefined; + allowDiscountCodes?: boolean | undefined; + metadata?: Record | undefined; + customer?: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; + requireCustomerData?: string[] | undefined; +}, { + nodeId: string; + amount?: number | undefined; + currency?: "USD" | "SAT" | undefined; + products?: string[] | undefined; + successUrl?: string | undefined; + allowDiscountCodes?: boolean | undefined; + metadata?: Record | undefined; + customer?: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; + requireCustomerData?: string[] | undefined; +}>, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; +}, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, Record, Record>; +declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; +}, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, Record, Record>; +declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWithInputOutput>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + /** + * Product selection at confirm time. + * - undefined or [] = keep current selection + * - [{ productId }] = change selection to this product + * - priceAmount required if selected price has amountType: CUSTOM + * + * Currently limited to single selection (max 1 item). + */ + products: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + productId: string; + priceAmount?: number | undefined; + }, { + productId: string; + priceAmount?: number | undefined; + }>, "many">>; +}, "strip", z.ZodTypeAny, { + checkoutId: string; + products?: { + productId: string; + priceAmount?: number | undefined; + }[] | undefined; + customer?: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; +}, { + checkoutId: string; + products?: { + productId: string; + priceAmount?: number | undefined; + }[] | undefined; + customer?: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; +}>, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; +}, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, Record, Record>; +declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; +}, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, Record, Record>; +declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; +}, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, Record, Record>; +declare const paymentReceivedContract: _orpc_contract.ContractProcedureBuilderWithInputOutput; + }, "strip", z.ZodTypeAny, { + paymentHash: string; + amountSats: number; + sandbox: boolean; + }, { + paymentHash: string; + amountSats: number; + sandbox?: boolean | undefined; + }>, "many">; +}, "strip", z.ZodTypeAny, { + payments: { + paymentHash: string; + amountSats: number; + sandbox: boolean; + }[]; +}, { + payments: { + paymentHash: string; + amountSats: number; + sandbox?: boolean | undefined; + }[]; +}>, z.ZodObject<{ + ok: z.ZodBoolean; +}, "strip", z.ZodTypeAny, { + ok: boolean; +}, { + ok: boolean; +}>, Record, Record>; +declare const checkout: { + get: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; + }, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, Record, Record>; + create: _orpc_contract.ContractProcedureBuilderWithInputOutput; + currency: z.ZodOptional>; + products: z.ZodOptional>; + successUrl: z.ZodOptional; + allowDiscountCodes: z.ZodOptional; + metadata: z.ZodOptional>; + /** + * Customer data for this checkout. + */ + customer: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + /** + * Array of customer fields to require at checkout. + * If a field is listed here and not provided, the checkout UI will prompt for it. + * @example ['email'] - require email + * @example ['email', 'name'] - require both + */ + requireCustomerData: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + nodeId: string; + amount?: number | undefined; + currency?: "USD" | "SAT" | undefined; + products?: string[] | undefined; + successUrl?: string | undefined; + allowDiscountCodes?: boolean | undefined; + metadata?: Record | undefined; + customer?: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; + requireCustomerData?: string[] | undefined; + }, { + nodeId: string; + amount?: number | undefined; + currency?: "USD" | "SAT" | undefined; + products?: string[] | undefined; + successUrl?: string | undefined; + allowDiscountCodes?: boolean | undefined; + metadata?: Record | undefined; + customer?: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; + requireCustomerData?: string[] | undefined; + }>, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; + }, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, Record, Record>; + confirm: _orpc_contract.ContractProcedureBuilderWithInputOutput>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + /** + * Product selection at confirm time. + * - undefined or [] = keep current selection + * - [{ productId }] = change selection to this product + * - priceAmount required if selected price has amountType: CUSTOM + * + * Currently limited to single selection (max 1 item). + */ + products: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + productId: string; + priceAmount?: number | undefined; + }, { + productId: string; + priceAmount?: number | undefined; + }>, "many">>; + }, "strip", z.ZodTypeAny, { + checkoutId: string; + products?: { + productId: string; + priceAmount?: number | undefined; + }[] | undefined; + customer?: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; + }, { + checkoutId: string; + products?: { + productId: string; + priceAmount?: number | undefined; + }[] | undefined; + customer?: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; + }>, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; + }, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, Record, Record>; + registerInvoice: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; + }, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, Record, Record>; + paymentReceived: _orpc_contract.ContractProcedureBuilderWithInputOutput; + }, "strip", z.ZodTypeAny, { + paymentHash: string; + amountSats: number; + sandbox: boolean; + }, { + paymentHash: string; + amountSats: number; + sandbox?: boolean | undefined; + }>, "many">; + }, "strip", z.ZodTypeAny, { + payments: { + paymentHash: string; + amountSats: number; + sandbox: boolean; + }[]; + }, { + payments: { + paymentHash: string; + amountSats: number; + sandbox?: boolean | undefined; + }[]; + }>, z.ZodObject<{ + ok: z.ZodBoolean; + }, "strip", z.ZodTypeAny, { + ok: boolean; + }, { + ok: boolean; + }>, Record, Record>; +}; + +export { ApplyDiscountCodeInputSchema, type ConfirmCheckout, ConfirmCheckoutInputSchema, type CreateCheckout, CreateCheckoutInputSchema, type CustomerField, CustomerFieldSchema, type CustomerInput, CustomerInputSchema, GetCheckoutInputSchema, type PaymentReceived, PaymentReceivedInputSchema, type RegisterInvoice, RegisterInvoiceInputSchema, applyDiscountCodeContract, checkout, confirmCheckoutContract, createCheckoutContract, getCheckoutContract, paymentReceivedContract, registerInvoiceContract }; diff --git a/dist/contracts/checkout.d.ts b/dist/contracts/checkout.d.ts new file mode 100644 index 0000000..33a0bc9 --- /dev/null +++ b/dist/contracts/checkout.d.ts @@ -0,0 +1,34899 @@ +import * as _orpc_contract from '@orpc/contract'; +import { z } from 'zod'; + +/** + * Valid fields that can be required at checkout time. + * - Standard fields: 'email', 'name' (checked against customer.email/name) + * - Any other string is a custom field (checked against customer[field]) + * + * @example ['email'] - require email + * @example ['email', 'name'] - require both email and name + * @example ['email', 'company'] - require email and company + */ +declare const CustomerFieldSchema: z.ZodString; +type CustomerField = string; +/** + * Customer data object for checkout. + * Flat structure - standard fields (name, email, externalId) plus any custom string fields. + * Empty strings are treated as undefined (not provided). + * + * @example { name: "John", email: "john@example.com", externalId: "user_123", company: "Acme" } + */ +declare const CustomerInputSchema: z.ZodObject<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; +}, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; +}, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; +}, z.ZodString, "strip">>; +type CustomerInput = z.infer; +declare const CreateCheckoutInputSchema: z.ZodObject<{ + nodeId: z.ZodString; + amount: z.ZodOptional; + currency: z.ZodOptional>; + products: z.ZodOptional>; + successUrl: z.ZodOptional; + allowDiscountCodes: z.ZodOptional; + metadata: z.ZodOptional>; + /** + * Customer data for this checkout. + */ + customer: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + /** + * Array of customer fields to require at checkout. + * If a field is listed here and not provided, the checkout UI will prompt for it. + * @example ['email'] - require email + * @example ['email', 'name'] - require both + */ + requireCustomerData: z.ZodOptional>; +}, "strip", z.ZodTypeAny, { + nodeId: string; + amount?: number | undefined; + currency?: "USD" | "SAT" | undefined; + products?: string[] | undefined; + successUrl?: string | undefined; + allowDiscountCodes?: boolean | undefined; + metadata?: Record | undefined; + customer?: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; + requireCustomerData?: string[] | undefined; +}, { + nodeId: string; + amount?: number | undefined; + currency?: "USD" | "SAT" | undefined; + products?: string[] | undefined; + successUrl?: string | undefined; + allowDiscountCodes?: boolean | undefined; + metadata?: Record | undefined; + customer?: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; + requireCustomerData?: string[] | undefined; +}>; +declare const ConfirmCheckoutInputSchema: z.ZodObject<{ + checkoutId: z.ZodString; + /** + * Customer data provided at confirm time. + */ + customer: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + /** + * Product selection at confirm time. + * - undefined or [] = keep current selection + * - [{ productId }] = change selection to this product + * - priceAmount required if selected price has amountType: CUSTOM + * + * Currently limited to single selection (max 1 item). + */ + products: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + productId: string; + priceAmount?: number | undefined; + }, { + productId: string; + priceAmount?: number | undefined; + }>, "many">>; +}, "strip", z.ZodTypeAny, { + checkoutId: string; + products?: { + productId: string; + priceAmount?: number | undefined; + }[] | undefined; + customer?: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; +}, { + checkoutId: string; + products?: { + productId: string; + priceAmount?: number | undefined; + }[] | undefined; + customer?: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; +}>; +declare const ApplyDiscountCodeInputSchema: z.ZodObject<{ + checkoutId: z.ZodString; + discountCode: z.ZodString; +}, "strip", z.ZodTypeAny, { + checkoutId: string; + discountCode: string; +}, { + checkoutId: string; + discountCode: string; +}>; +declare const RegisterInvoiceInputSchema: z.ZodObject<{ + nodeId: z.ZodString; + scid: z.ZodString; + checkoutId: z.ZodString; + invoice: z.ZodString; + paymentHash: z.ZodString; + invoiceExpiresAt: z.ZodDate; +}, "strip", z.ZodTypeAny, { + nodeId: string; + checkoutId: string; + scid: string; + invoice: string; + paymentHash: string; + invoiceExpiresAt: Date; +}, { + nodeId: string; + checkoutId: string; + scid: string; + invoice: string; + paymentHash: string; + invoiceExpiresAt: Date; +}>; +declare const PaymentReceivedInputSchema: z.ZodObject<{ + payments: z.ZodArray; + }, "strip", z.ZodTypeAny, { + paymentHash: string; + amountSats: number; + sandbox: boolean; + }, { + paymentHash: string; + amountSats: number; + sandbox?: boolean | undefined; + }>, "many">; +}, "strip", z.ZodTypeAny, { + payments: { + paymentHash: string; + amountSats: number; + sandbox: boolean; + }[]; +}, { + payments: { + paymentHash: string; + amountSats: number; + sandbox?: boolean | undefined; + }[]; +}>; +declare const GetCheckoutInputSchema: z.ZodObject<{ + id: z.ZodString; +}, "strip", z.ZodTypeAny, { + id: string; +}, { + id: string; +}>; +type CreateCheckout = z.infer; +type ConfirmCheckout = z.infer; +type RegisterInvoice = z.infer; +type PaymentReceived = z.infer; +declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWithInputOutput; + currency: z.ZodOptional>; + products: z.ZodOptional>; + successUrl: z.ZodOptional; + allowDiscountCodes: z.ZodOptional; + metadata: z.ZodOptional>; + /** + * Customer data for this checkout. + */ + customer: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + /** + * Array of customer fields to require at checkout. + * If a field is listed here and not provided, the checkout UI will prompt for it. + * @example ['email'] - require email + * @example ['email', 'name'] - require both + */ + requireCustomerData: z.ZodOptional>; +}, "strip", z.ZodTypeAny, { + nodeId: string; + amount?: number | undefined; + currency?: "USD" | "SAT" | undefined; + products?: string[] | undefined; + successUrl?: string | undefined; + allowDiscountCodes?: boolean | undefined; + metadata?: Record | undefined; + customer?: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; + requireCustomerData?: string[] | undefined; +}, { + nodeId: string; + amount?: number | undefined; + currency?: "USD" | "SAT" | undefined; + products?: string[] | undefined; + successUrl?: string | undefined; + allowDiscountCodes?: boolean | undefined; + metadata?: Record | undefined; + customer?: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; + requireCustomerData?: string[] | undefined; +}>, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; +}, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, Record, Record>; +declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; +}, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, Record, Record>; +declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWithInputOutput>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + /** + * Product selection at confirm time. + * - undefined or [] = keep current selection + * - [{ productId }] = change selection to this product + * - priceAmount required if selected price has amountType: CUSTOM + * + * Currently limited to single selection (max 1 item). + */ + products: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + productId: string; + priceAmount?: number | undefined; + }, { + productId: string; + priceAmount?: number | undefined; + }>, "many">>; +}, "strip", z.ZodTypeAny, { + checkoutId: string; + products?: { + productId: string; + priceAmount?: number | undefined; + }[] | undefined; + customer?: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; +}, { + checkoutId: string; + products?: { + productId: string; + priceAmount?: number | undefined; + }[] | undefined; + customer?: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; +}>, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; +}, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, Record, Record>; +declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; +}, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, Record, Record>; +declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; +}, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, Record, Record>; +declare const paymentReceivedContract: _orpc_contract.ContractProcedureBuilderWithInputOutput; + }, "strip", z.ZodTypeAny, { + paymentHash: string; + amountSats: number; + sandbox: boolean; + }, { + paymentHash: string; + amountSats: number; + sandbox?: boolean | undefined; + }>, "many">; +}, "strip", z.ZodTypeAny, { + payments: { + paymentHash: string; + amountSats: number; + sandbox: boolean; + }[]; +}, { + payments: { + paymentHash: string; + amountSats: number; + sandbox?: boolean | undefined; + }[]; +}>, z.ZodObject<{ + ok: z.ZodBoolean; +}, "strip", z.ZodTypeAny, { + ok: boolean; +}, { + ok: boolean; +}>, Record, Record>; +declare const checkout: { + get: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; + }, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, Record, Record>; + create: _orpc_contract.ContractProcedureBuilderWithInputOutput; + currency: z.ZodOptional>; + products: z.ZodOptional>; + successUrl: z.ZodOptional; + allowDiscountCodes: z.ZodOptional; + metadata: z.ZodOptional>; + /** + * Customer data for this checkout. + */ + customer: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + /** + * Array of customer fields to require at checkout. + * If a field is listed here and not provided, the checkout UI will prompt for it. + * @example ['email'] - require email + * @example ['email', 'name'] - require both + */ + requireCustomerData: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + nodeId: string; + amount?: number | undefined; + currency?: "USD" | "SAT" | undefined; + products?: string[] | undefined; + successUrl?: string | undefined; + allowDiscountCodes?: boolean | undefined; + metadata?: Record | undefined; + customer?: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; + requireCustomerData?: string[] | undefined; + }, { + nodeId: string; + amount?: number | undefined; + currency?: "USD" | "SAT" | undefined; + products?: string[] | undefined; + successUrl?: string | undefined; + allowDiscountCodes?: boolean | undefined; + metadata?: Record | undefined; + customer?: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; + requireCustomerData?: string[] | undefined; + }>, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; + }, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, Record, Record>; + confirm: _orpc_contract.ContractProcedureBuilderWithInputOutput>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + /** + * Product selection at confirm time. + * - undefined or [] = keep current selection + * - [{ productId }] = change selection to this product + * - priceAmount required if selected price has amountType: CUSTOM + * + * Currently limited to single selection (max 1 item). + */ + products: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + productId: string; + priceAmount?: number | undefined; + }, { + productId: string; + priceAmount?: number | undefined; + }>, "many">>; + }, "strip", z.ZodTypeAny, { + checkoutId: string; + products?: { + productId: string; + priceAmount?: number | undefined; + }[] | undefined; + customer?: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; + }, { + checkoutId: string; + products?: { + productId: string; + priceAmount?: number | undefined; + }[] | undefined; + customer?: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | undefined; + }>, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; + }, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, Record, Record>; + registerInvoice: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; + }, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; + }, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + } & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; + }, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; + }, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, Record, Record>; + paymentReceived: _orpc_contract.ContractProcedureBuilderWithInputOutput; + }, "strip", z.ZodTypeAny, { + paymentHash: string; + amountSats: number; + sandbox: boolean; + }, { + paymentHash: string; + amountSats: number; + sandbox?: boolean | undefined; + }>, "many">; + }, "strip", z.ZodTypeAny, { + payments: { + paymentHash: string; + amountSats: number; + sandbox: boolean; + }[]; + }, { + payments: { + paymentHash: string; + amountSats: number; + sandbox?: boolean | undefined; + }[]; + }>, z.ZodObject<{ + ok: z.ZodBoolean; + }, "strip", z.ZodTypeAny, { + ok: boolean; + }, { + ok: boolean; + }>, Record, Record>; +}; + +export { ApplyDiscountCodeInputSchema, type ConfirmCheckout, ConfirmCheckoutInputSchema, type CreateCheckout, CreateCheckoutInputSchema, type CustomerField, CustomerFieldSchema, type CustomerInput, CustomerInputSchema, GetCheckoutInputSchema, type PaymentReceived, PaymentReceivedInputSchema, type RegisterInvoice, RegisterInvoiceInputSchema, applyDiscountCodeContract, checkout, confirmCheckoutContract, createCheckoutContract, getCheckoutContract, paymentReceivedContract, registerInvoiceContract }; diff --git a/dist/contracts/checkout.js b/dist/contracts/checkout.js new file mode 100644 index 0000000..6a24016 --- /dev/null +++ b/dist/contracts/checkout.js @@ -0,0 +1,38 @@ +import { + ApplyDiscountCodeInputSchema, + ConfirmCheckoutInputSchema, + CreateCheckoutInputSchema, + CustomerFieldSchema, + CustomerInputSchema, + GetCheckoutInputSchema, + PaymentReceivedInputSchema, + RegisterInvoiceInputSchema, + applyDiscountCodeContract, + checkout, + confirmCheckoutContract, + createCheckoutContract, + getCheckoutContract, + paymentReceivedContract, + registerInvoiceContract +} from "../chunk-6XWZHZXK.js"; +import "../chunk-7EZSTHMJ.js"; +import "../chunk-TGG53ETU.js"; +import "../chunk-CD4U22RQ.js"; +import "../chunk-6M6LFZ3U.js"; +export { + ApplyDiscountCodeInputSchema, + ConfirmCheckoutInputSchema, + CreateCheckoutInputSchema, + CustomerFieldSchema, + CustomerInputSchema, + GetCheckoutInputSchema, + PaymentReceivedInputSchema, + RegisterInvoiceInputSchema, + applyDiscountCodeContract, + checkout, + confirmCheckoutContract, + createCheckoutContract, + getCheckoutContract, + paymentReceivedContract, + registerInvoiceContract +}; diff --git a/dist/contracts/onboarding.cjs b/dist/contracts/onboarding.cjs new file mode 100644 index 0000000..9ce03de --- /dev/null +++ b/dist/contracts/onboarding.cjs @@ -0,0 +1,96 @@ +"use strict"; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/contracts/onboarding.ts +var onboarding_exports = {}; +__export(onboarding_exports, { + bootstrapContract: () => bootstrapContract, + onboarding: () => onboarding, + pollDeviceAuthContract: () => pollDeviceAuthContract, + startDeviceAuthContract: () => startDeviceAuthContract +}); +module.exports = __toCommonJS(onboarding_exports); +var import_contract = require("@orpc/contract"); + +// src/schemas/onboarding.ts +var import_zod = require("zod"); +var StartDeviceAuthInputSchema = import_zod.z.object({ + clientDisplayName: import_zod.z.string().optional(), + webhookUrl: import_zod.z.string().url().optional(), + forceNewWebhook: import_zod.z.boolean().optional() +}); +var StartDeviceAuthOutputSchema = import_zod.z.object({ + deviceCode: import_zod.z.string(), + userCode: import_zod.z.string(), + verificationUri: import_zod.z.string().url(), + expiresIn: import_zod.z.number().int().positive(), + interval: import_zod.z.number().int().positive() +}); +var PollDeviceAuthInputSchema = import_zod.z.object({ + deviceCode: import_zod.z.string() +}); +var PollDeviceAuthOutputSchema = import_zod.z.discriminatedUnion("status", [ + import_zod.z.object({ + status: import_zod.z.literal("pending"), + expiresIn: import_zod.z.number().int().nonnegative() + }), + import_zod.z.object({ + status: import_zod.z.literal("authorized"), + bootstrapToken: import_zod.z.string(), + expiresIn: import_zod.z.number().int().nonnegative().optional() + }), + import_zod.z.object({ + status: import_zod.z.literal("expired") + }), + import_zod.z.object({ + status: import_zod.z.literal("denied") + }) +]); +var BootstrapInputSchema = import_zod.z.object({ + bootstrapToken: import_zod.z.string(), + webhookUrl: import_zod.z.string().url().optional(), + projectName: import_zod.z.string().optional(), + forceNewWebhook: import_zod.z.boolean().optional() +}); +var BootstrapOutputSchema = import_zod.z.object({ + apiKey: import_zod.z.string(), + apiKeyPreview: import_zod.z.string(), + apiKeyId: import_zod.z.string(), + webhookId: import_zod.z.string(), + webhookSecret: import_zod.z.string(), + organizationId: import_zod.z.string(), + webhookUrl: import_zod.z.string().url() +}); + +// src/contracts/onboarding.ts +var startDeviceAuthContract = import_contract.oc.input(StartDeviceAuthInputSchema).output(StartDeviceAuthOutputSchema); +var pollDeviceAuthContract = import_contract.oc.input(PollDeviceAuthInputSchema).output(PollDeviceAuthOutputSchema); +var bootstrapContract = import_contract.oc.input(BootstrapInputSchema).output(BootstrapOutputSchema); +var onboarding = { + startDeviceAuth: startDeviceAuthContract, + pollDeviceAuth: pollDeviceAuthContract, + bootstrap: bootstrapContract +}; +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + bootstrapContract, + onboarding, + pollDeviceAuthContract, + startDeviceAuthContract +}); diff --git a/dist/contracts/onboarding.d.cts b/dist/contracts/onboarding.d.cts new file mode 100644 index 0000000..e4ffa32 --- /dev/null +++ b/dist/contracts/onboarding.d.cts @@ -0,0 +1,236 @@ +import * as _orpc_contract from '@orpc/contract'; +import { z } from 'zod'; +import { BootstrapInputSchema, BootstrapOutputSchema, PollDeviceAuthInputSchema, PollDeviceAuthOutputSchema, StartDeviceAuthInputSchema, StartDeviceAuthOutputSchema } from '../schemas/onboarding.cjs'; + +type StartDeviceAuth = z.infer; +type StartDeviceAuthResponse = z.infer; +type PollDeviceAuth = z.infer; +type PollDeviceAuthResponse = z.infer; +type BootstrapOnboarding = z.infer; +type BootstrapOnboardingResponse = z.infer; +declare const startDeviceAuthContract: _orpc_contract.ContractProcedureBuilderWithInputOutput; + webhookUrl: z.ZodOptional; + forceNewWebhook: z.ZodOptional; +}, "strip", z.ZodTypeAny, { + clientDisplayName?: string | undefined; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; +}, { + clientDisplayName?: string | undefined; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; +}>, z.ZodObject<{ + deviceCode: z.ZodString; + userCode: z.ZodString; + verificationUri: z.ZodString; + expiresIn: z.ZodNumber; + interval: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + deviceCode: string; + userCode: string; + verificationUri: string; + expiresIn: number; + interval: number; +}, { + deviceCode: string; + userCode: string; + verificationUri: string; + expiresIn: number; + interval: number; +}>, Record, Record>; +declare const pollDeviceAuthContract: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ + status: z.ZodLiteral<"pending">; + expiresIn: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "pending"; + expiresIn: number; +}, { + status: "pending"; + expiresIn: number; +}>, z.ZodObject<{ + status: z.ZodLiteral<"authorized">; + bootstrapToken: z.ZodString; + expiresIn: z.ZodOptional; +}, "strip", z.ZodTypeAny, { + status: "authorized"; + bootstrapToken: string; + expiresIn?: number | undefined; +}, { + status: "authorized"; + bootstrapToken: string; + expiresIn?: number | undefined; +}>, z.ZodObject<{ + status: z.ZodLiteral<"expired">; +}, "strip", z.ZodTypeAny, { + status: "expired"; +}, { + status: "expired"; +}>, z.ZodObject<{ + status: z.ZodLiteral<"denied">; +}, "strip", z.ZodTypeAny, { + status: "denied"; +}, { + status: "denied"; +}>]>, Record, Record>; +declare const bootstrapContract: _orpc_contract.ContractProcedureBuilderWithInputOutput; + projectName: z.ZodOptional; + forceNewWebhook: z.ZodOptional; +}, "strip", z.ZodTypeAny, { + bootstrapToken: string; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + projectName?: string | undefined; +}, { + bootstrapToken: string; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + projectName?: string | undefined; +}>, z.ZodObject<{ + apiKey: z.ZodString; + apiKeyPreview: z.ZodString; + apiKeyId: z.ZodString; + webhookId: z.ZodString; + webhookSecret: z.ZodString; + organizationId: z.ZodString; + webhookUrl: z.ZodString; +}, "strip", z.ZodTypeAny, { + organizationId: string; + webhookUrl: string; + apiKey: string; + apiKeyPreview: string; + apiKeyId: string; + webhookId: string; + webhookSecret: string; +}, { + organizationId: string; + webhookUrl: string; + apiKey: string; + apiKeyPreview: string; + apiKeyId: string; + webhookId: string; + webhookSecret: string; +}>, Record, Record>; +declare const onboarding: { + startDeviceAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput; + webhookUrl: z.ZodOptional; + forceNewWebhook: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + clientDisplayName?: string | undefined; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + }, { + clientDisplayName?: string | undefined; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + }>, z.ZodObject<{ + deviceCode: z.ZodString; + userCode: z.ZodString; + verificationUri: z.ZodString; + expiresIn: z.ZodNumber; + interval: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + deviceCode: string; + userCode: string; + verificationUri: string; + expiresIn: number; + interval: number; + }, { + deviceCode: string; + userCode: string; + verificationUri: string; + expiresIn: number; + interval: number; + }>, Record, Record>; + pollDeviceAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ + status: z.ZodLiteral<"pending">; + expiresIn: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "pending"; + expiresIn: number; + }, { + status: "pending"; + expiresIn: number; + }>, z.ZodObject<{ + status: z.ZodLiteral<"authorized">; + bootstrapToken: z.ZodString; + expiresIn: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + status: "authorized"; + bootstrapToken: string; + expiresIn?: number | undefined; + }, { + status: "authorized"; + bootstrapToken: string; + expiresIn?: number | undefined; + }>, z.ZodObject<{ + status: z.ZodLiteral<"expired">; + }, "strip", z.ZodTypeAny, { + status: "expired"; + }, { + status: "expired"; + }>, z.ZodObject<{ + status: z.ZodLiteral<"denied">; + }, "strip", z.ZodTypeAny, { + status: "denied"; + }, { + status: "denied"; + }>]>, Record, Record>; + bootstrap: _orpc_contract.ContractProcedureBuilderWithInputOutput; + projectName: z.ZodOptional; + forceNewWebhook: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + bootstrapToken: string; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + projectName?: string | undefined; + }, { + bootstrapToken: string; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + projectName?: string | undefined; + }>, z.ZodObject<{ + apiKey: z.ZodString; + apiKeyPreview: z.ZodString; + apiKeyId: z.ZodString; + webhookId: z.ZodString; + webhookSecret: z.ZodString; + organizationId: z.ZodString; + webhookUrl: z.ZodString; + }, "strip", z.ZodTypeAny, { + organizationId: string; + webhookUrl: string; + apiKey: string; + apiKeyPreview: string; + apiKeyId: string; + webhookId: string; + webhookSecret: string; + }, { + organizationId: string; + webhookUrl: string; + apiKey: string; + apiKeyPreview: string; + apiKeyId: string; + webhookId: string; + webhookSecret: string; + }>, Record, Record>; +}; + +export { type BootstrapOnboarding, type BootstrapOnboardingResponse, type PollDeviceAuth, type PollDeviceAuthResponse, type StartDeviceAuth, type StartDeviceAuthResponse, bootstrapContract, onboarding, pollDeviceAuthContract, startDeviceAuthContract }; diff --git a/dist/contracts/onboarding.d.ts b/dist/contracts/onboarding.d.ts new file mode 100644 index 0000000..8245867 --- /dev/null +++ b/dist/contracts/onboarding.d.ts @@ -0,0 +1,236 @@ +import * as _orpc_contract from '@orpc/contract'; +import { z } from 'zod'; +import { BootstrapInputSchema, BootstrapOutputSchema, PollDeviceAuthInputSchema, PollDeviceAuthOutputSchema, StartDeviceAuthInputSchema, StartDeviceAuthOutputSchema } from '../schemas/onboarding.js'; + +type StartDeviceAuth = z.infer; +type StartDeviceAuthResponse = z.infer; +type PollDeviceAuth = z.infer; +type PollDeviceAuthResponse = z.infer; +type BootstrapOnboarding = z.infer; +type BootstrapOnboardingResponse = z.infer; +declare const startDeviceAuthContract: _orpc_contract.ContractProcedureBuilderWithInputOutput; + webhookUrl: z.ZodOptional; + forceNewWebhook: z.ZodOptional; +}, "strip", z.ZodTypeAny, { + clientDisplayName?: string | undefined; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; +}, { + clientDisplayName?: string | undefined; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; +}>, z.ZodObject<{ + deviceCode: z.ZodString; + userCode: z.ZodString; + verificationUri: z.ZodString; + expiresIn: z.ZodNumber; + interval: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + deviceCode: string; + userCode: string; + verificationUri: string; + expiresIn: number; + interval: number; +}, { + deviceCode: string; + userCode: string; + verificationUri: string; + expiresIn: number; + interval: number; +}>, Record, Record>; +declare const pollDeviceAuthContract: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ + status: z.ZodLiteral<"pending">; + expiresIn: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "pending"; + expiresIn: number; +}, { + status: "pending"; + expiresIn: number; +}>, z.ZodObject<{ + status: z.ZodLiteral<"authorized">; + bootstrapToken: z.ZodString; + expiresIn: z.ZodOptional; +}, "strip", z.ZodTypeAny, { + status: "authorized"; + bootstrapToken: string; + expiresIn?: number | undefined; +}, { + status: "authorized"; + bootstrapToken: string; + expiresIn?: number | undefined; +}>, z.ZodObject<{ + status: z.ZodLiteral<"expired">; +}, "strip", z.ZodTypeAny, { + status: "expired"; +}, { + status: "expired"; +}>, z.ZodObject<{ + status: z.ZodLiteral<"denied">; +}, "strip", z.ZodTypeAny, { + status: "denied"; +}, { + status: "denied"; +}>]>, Record, Record>; +declare const bootstrapContract: _orpc_contract.ContractProcedureBuilderWithInputOutput; + projectName: z.ZodOptional; + forceNewWebhook: z.ZodOptional; +}, "strip", z.ZodTypeAny, { + bootstrapToken: string; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + projectName?: string | undefined; +}, { + bootstrapToken: string; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + projectName?: string | undefined; +}>, z.ZodObject<{ + apiKey: z.ZodString; + apiKeyPreview: z.ZodString; + apiKeyId: z.ZodString; + webhookId: z.ZodString; + webhookSecret: z.ZodString; + organizationId: z.ZodString; + webhookUrl: z.ZodString; +}, "strip", z.ZodTypeAny, { + organizationId: string; + webhookUrl: string; + apiKey: string; + apiKeyPreview: string; + apiKeyId: string; + webhookId: string; + webhookSecret: string; +}, { + organizationId: string; + webhookUrl: string; + apiKey: string; + apiKeyPreview: string; + apiKeyId: string; + webhookId: string; + webhookSecret: string; +}>, Record, Record>; +declare const onboarding: { + startDeviceAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput; + webhookUrl: z.ZodOptional; + forceNewWebhook: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + clientDisplayName?: string | undefined; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + }, { + clientDisplayName?: string | undefined; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + }>, z.ZodObject<{ + deviceCode: z.ZodString; + userCode: z.ZodString; + verificationUri: z.ZodString; + expiresIn: z.ZodNumber; + interval: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + deviceCode: string; + userCode: string; + verificationUri: string; + expiresIn: number; + interval: number; + }, { + deviceCode: string; + userCode: string; + verificationUri: string; + expiresIn: number; + interval: number; + }>, Record, Record>; + pollDeviceAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ + status: z.ZodLiteral<"pending">; + expiresIn: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + status: "pending"; + expiresIn: number; + }, { + status: "pending"; + expiresIn: number; + }>, z.ZodObject<{ + status: z.ZodLiteral<"authorized">; + bootstrapToken: z.ZodString; + expiresIn: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + status: "authorized"; + bootstrapToken: string; + expiresIn?: number | undefined; + }, { + status: "authorized"; + bootstrapToken: string; + expiresIn?: number | undefined; + }>, z.ZodObject<{ + status: z.ZodLiteral<"expired">; + }, "strip", z.ZodTypeAny, { + status: "expired"; + }, { + status: "expired"; + }>, z.ZodObject<{ + status: z.ZodLiteral<"denied">; + }, "strip", z.ZodTypeAny, { + status: "denied"; + }, { + status: "denied"; + }>]>, Record, Record>; + bootstrap: _orpc_contract.ContractProcedureBuilderWithInputOutput; + projectName: z.ZodOptional; + forceNewWebhook: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + bootstrapToken: string; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + projectName?: string | undefined; + }, { + bootstrapToken: string; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + projectName?: string | undefined; + }>, z.ZodObject<{ + apiKey: z.ZodString; + apiKeyPreview: z.ZodString; + apiKeyId: z.ZodString; + webhookId: z.ZodString; + webhookSecret: z.ZodString; + organizationId: z.ZodString; + webhookUrl: z.ZodString; + }, "strip", z.ZodTypeAny, { + organizationId: string; + webhookUrl: string; + apiKey: string; + apiKeyPreview: string; + apiKeyId: string; + webhookId: string; + webhookSecret: string; + }, { + organizationId: string; + webhookUrl: string; + apiKey: string; + apiKeyPreview: string; + apiKeyId: string; + webhookId: string; + webhookSecret: string; + }>, Record, Record>; +}; + +export { type BootstrapOnboarding, type BootstrapOnboardingResponse, type PollDeviceAuth, type PollDeviceAuthResponse, type StartDeviceAuth, type StartDeviceAuthResponse, bootstrapContract, onboarding, pollDeviceAuthContract, startDeviceAuthContract }; diff --git a/dist/contracts/onboarding.js b/dist/contracts/onboarding.js new file mode 100644 index 0000000..02d1b04 --- /dev/null +++ b/dist/contracts/onboarding.js @@ -0,0 +1,13 @@ +import { + bootstrapContract, + onboarding, + pollDeviceAuthContract, + startDeviceAuthContract +} from "../chunk-RZPQSVO3.js"; +import "../chunk-WJ6HHWDE.js"; +export { + bootstrapContract, + onboarding, + pollDeviceAuthContract, + startDeviceAuthContract +}; diff --git a/dist/contracts/products.cjs b/dist/contracts/products.cjs new file mode 100644 index 0000000..2add987 --- /dev/null +++ b/dist/contracts/products.cjs @@ -0,0 +1,65 @@ +"use strict"; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/contracts/products.ts +var products_exports = {}; +__export(products_exports, { + ListProductsOutputSchema: () => ListProductsOutputSchema, + ProductPriceSchema: () => ProductPriceSchema, + ProductSchema: () => ProductSchema, + listProductsContract: () => listProductsContract, + products: () => products +}); +module.exports = __toCommonJS(products_exports); +var import_contract = require("@orpc/contract"); +var import_zod2 = require("zod"); + +// src/schemas/currency.ts +var import_zod = require("zod"); +var CurrencySchema = import_zod.z.enum(["USD", "SAT"]); + +// src/contracts/products.ts +var ProductPriceSchema = import_zod2.z.object({ + id: import_zod2.z.string(), + amountType: import_zod2.z.enum(["FIXED", "CUSTOM", "FREE"]), + priceAmount: import_zod2.z.number().nullable(), + currency: CurrencySchema +}); +var ProductSchema = import_zod2.z.object({ + id: import_zod2.z.string(), + name: import_zod2.z.string(), + description: import_zod2.z.string().nullable(), + recurringInterval: import_zod2.z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(), + prices: import_zod2.z.array(ProductPriceSchema) +}); +var ListProductsOutputSchema = import_zod2.z.object({ + products: import_zod2.z.array(ProductSchema) +}); +var listProductsContract = import_contract.oc.input(import_zod2.z.object({}).optional()).output(ListProductsOutputSchema); +var products = { + list: listProductsContract +}; +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + ListProductsOutputSchema, + ProductPriceSchema, + ProductSchema, + listProductsContract, + products +}); diff --git a/dist/contracts/products.d.cts b/dist/contracts/products.d.cts new file mode 100644 index 0000000..0f9836c --- /dev/null +++ b/dist/contracts/products.d.cts @@ -0,0 +1,285 @@ +import * as _orpc_contract from '@orpc/contract'; +import { z } from 'zod'; + +declare const ProductPriceSchema: z.ZodObject<{ + id: z.ZodString; + amountType: z.ZodEnum<["FIXED", "CUSTOM", "FREE"]>; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; +}, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; +}, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; +}>; +declare const ProductSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + description: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; +}, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; +}, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; +}>; +declare const ListProductsOutputSchema: z.ZodObject<{ + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">; +}, "strip", z.ZodTypeAny, { + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]; +}, { + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]; +}>; +type Product = z.infer; +type ProductPrice = z.infer; +declare const listProductsContract: _orpc_contract.ContractProcedureBuilderWithInputOutput>, z.ZodObject<{ + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">; +}, "strip", z.ZodTypeAny, { + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]; +}, { + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]; +}>, Record, Record>; +declare const products: { + list: _orpc_contract.ContractProcedureBuilderWithInputOutput>, z.ZodObject<{ + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">; + }, "strip", z.ZodTypeAny, { + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]; + }, { + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]; + }>, Record, Record>; +}; + +export { ListProductsOutputSchema, type Product, type ProductPrice, ProductPriceSchema, ProductSchema, listProductsContract, products }; diff --git a/dist/contracts/products.d.ts b/dist/contracts/products.d.ts new file mode 100644 index 0000000..0f9836c --- /dev/null +++ b/dist/contracts/products.d.ts @@ -0,0 +1,285 @@ +import * as _orpc_contract from '@orpc/contract'; +import { z } from 'zod'; + +declare const ProductPriceSchema: z.ZodObject<{ + id: z.ZodString; + amountType: z.ZodEnum<["FIXED", "CUSTOM", "FREE"]>; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; +}, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; +}, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; +}>; +declare const ProductSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + description: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; +}, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; +}, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; +}>; +declare const ListProductsOutputSchema: z.ZodObject<{ + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">; +}, "strip", z.ZodTypeAny, { + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]; +}, { + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]; +}>; +type Product = z.infer; +type ProductPrice = z.infer; +declare const listProductsContract: _orpc_contract.ContractProcedureBuilderWithInputOutput>, z.ZodObject<{ + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">; +}, "strip", z.ZodTypeAny, { + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]; +}, { + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]; +}>, Record, Record>; +declare const products: { + list: _orpc_contract.ContractProcedureBuilderWithInputOutput>, z.ZodObject<{ + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">; + }, "strip", z.ZodTypeAny, { + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]; + }, { + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]; + }>, Record, Record>; +}; + +export { ListProductsOutputSchema, type Product, type ProductPrice, ProductPriceSchema, ProductSchema, listProductsContract, products }; diff --git a/dist/contracts/products.js b/dist/contracts/products.js new file mode 100644 index 0000000..968f602 --- /dev/null +++ b/dist/contracts/products.js @@ -0,0 +1,15 @@ +import { + ListProductsOutputSchema, + ProductPriceSchema, + ProductSchema, + listProductsContract, + products +} from "../chunk-Y6DXID65.js"; +import "../chunk-6M6LFZ3U.js"; +export { + ListProductsOutputSchema, + ProductPriceSchema, + ProductSchema, + listProductsContract, + products +}; diff --git a/dist/index.cjs b/dist/index.cjs new file mode 100644 index 0000000..52c24de --- /dev/null +++ b/dist/index.cjs @@ -0,0 +1,552 @@ +"use strict"; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/index.ts +var index_exports = {}; +__export(index_exports, { + CheckoutSchema: () => CheckoutSchema, + CurrencySchema: () => CurrencySchema, + ListProductsOutputSchema: () => ListProductsOutputSchema, + MAX_KEY_COUNT: () => MAX_KEY_COUNT, + MAX_KEY_LENGTH: () => MAX_KEY_LENGTH, + MAX_METADATA_SIZE_BYTES: () => MAX_METADATA_SIZE_BYTES, + ProductPriceSchema: () => ProductPriceSchema, + ProductSchema: () => ProductSchema, + contract: () => contract, + validateMetadata: () => validateMetadata +}); +module.exports = __toCommonJS(index_exports); + +// src/contracts/checkout.ts +var import_contract = require("@orpc/contract"); +var import_zod5 = require("zod"); + +// src/schemas/checkout.ts +var import_zod4 = require("zod"); + +// src/schemas/currency.ts +var import_zod = require("zod"); +var CurrencySchema = import_zod.z.enum(["USD", "SAT"]); + +// src/schemas/invoice.ts +var import_zod2 = require("zod"); +var BaseInvoiceSchema = import_zod2.z.object({ + invoice: import_zod2.z.string(), + expiresAt: import_zod2.z.date(), + paymentHash: import_zod2.z.string(), + amountSats: import_zod2.z.number().nullable(), + amountSatsReceived: import_zod2.z.number().nullable(), + currency: CurrencySchema, + fiatAmount: import_zod2.z.number().nullable(), + btcPrice: import_zod2.z.number().nullable() +}); +var FixedAmountPendingInvoiceSchema = BaseInvoiceSchema.extend({ + amountSats: import_zod2.z.number(), + fiatAmount: import_zod2.z.number(), + btcPrice: import_zod2.z.number() +}); +var DynamicAmountPendingInvoiceSchema = BaseInvoiceSchema; +var PaidInvoiceSchema = FixedAmountPendingInvoiceSchema.extend({ + amountSatsReceived: import_zod2.z.number() +}); + +// src/schemas/product.ts +var import_zod3 = require("zod"); +var CheckoutProductPriceSchema = import_zod3.z.object({ + id: import_zod3.z.string(), + amountType: import_zod3.z.enum(["FIXED", "CUSTOM", "FREE"]), + priceAmount: import_zod3.z.number().nullable(), + currency: CurrencySchema +}); +var CheckoutProductSchema = import_zod3.z.object({ + id: import_zod3.z.string(), + name: import_zod3.z.string(), + description: import_zod3.z.string().nullable(), + recurringInterval: import_zod3.z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(), + prices: import_zod3.z.array(CheckoutProductPriceSchema) +}); + +// src/schemas/checkout.ts +var CustomerFieldSchema = import_zod4.z.string().min(1); +var CustomerOutputSchema = import_zod4.z.object({ + name: import_zod4.z.string().nullish(), + email: import_zod4.z.string().email().nullish(), + externalId: import_zod4.z.string().nullish() +}).catchall(import_zod4.z.string()); +var BaseCheckoutSchema = import_zod4.z.object({ + id: import_zod4.z.string(), + createdAt: import_zod4.z.date(), + clientSecret: import_zod4.z.string(), + type: import_zod4.z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]), + status: import_zod4.z.enum([ + "UNCONFIRMED", + "CONFIRMED", + "PENDING_PAYMENT", + "PAYMENT_RECEIVED", + "EXPIRED" + ]), + organizationId: import_zod4.z.string(), + expiresAt: import_zod4.z.date(), + userMetadata: import_zod4.z.record(import_zod4.z.any()).nullable(), + customFieldData: import_zod4.z.record(import_zod4.z.any()).nullable(), + currency: CurrencySchema, + allowDiscountCodes: import_zod4.z.boolean(), + /** + * Array of customer fields required at checkout. + * @example ['email'] - email required + * @example ['email', 'name'] - both required + */ + requireCustomerData: import_zod4.z.array(CustomerFieldSchema).nullable(), + successUrl: import_zod4.z.string().nullable(), + /** + * Customer data associated with this checkout. + */ + customer: CustomerOutputSchema.nullable(), + customerBillingAddress: import_zod4.z.record(import_zod4.z.any()).nullable(), + products: import_zod4.z.array(CheckoutProductSchema).nullable(), + /** + * The selected product ID (from the products array). + * For PRODUCTS checkouts, this is the product the customer has chosen. + * null for AMOUNT/TOP_UP checkouts. + */ + productId: import_zod4.z.string().nullable(), + /** + * The selected product price ID. + * References a price from the selected product's prices array. + * null for AMOUNT/TOP_UP checkouts. + */ + productPriceId: import_zod4.z.string().nullable(), + /** + * User-provided amount for CUSTOM price products. + * Only set when the selected price has amountType: CUSTOM. + */ + customAmount: import_zod4.z.number().nullable(), + /** + * The selected product with full details (convenience field). + * Same shape as items in the products array. + * null if no product is selected. + */ + product: CheckoutProductSchema.nullable(), + providedAmount: import_zod4.z.number().nullable(), + totalAmount: import_zod4.z.number().nullable(), + discountAmount: import_zod4.z.number().nullable(), + netAmount: import_zod4.z.number().nullable(), + taxAmount: import_zod4.z.number().nullable(), + invoiceAmountSats: import_zod4.z.number().nullable(), + invoiceScid: import_zod4.z.string().nullable(), + btcPrice: import_zod4.z.number().nullable(), + invoice: BaseInvoiceSchema.nullable() +}); +var AmountFieldsSchema = import_zod4.z.object({ + totalAmount: import_zod4.z.number(), + discountAmount: import_zod4.z.number(), + netAmount: import_zod4.z.number(), + taxAmount: import_zod4.z.number(), + invoiceAmountSats: import_zod4.z.number(), + btcPrice: import_zod4.z.number() +}); +var ExpiredCheckoutSchema = BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("EXPIRED"), + type: import_zod4.z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]) +}); +var UnconfirmedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ + BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("UNCONFIRMED"), + type: import_zod4.z.literal("PRODUCTS"), + products: import_zod4.z.array(CheckoutProductSchema).nonempty() + }), + BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("UNCONFIRMED"), + type: import_zod4.z.literal("AMOUNT"), + providedAmount: import_zod4.z.number() + }), + BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("UNCONFIRMED"), + type: import_zod4.z.literal("TOP_UP") + }) +]); +var ConfirmedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("CONFIRMED"), + type: import_zod4.z.literal("PRODUCTS"), + products: import_zod4.z.array(CheckoutProductSchema).nonempty() + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("CONFIRMED"), + type: import_zod4.z.literal("AMOUNT"), + providedAmount: import_zod4.z.number() + }), + BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("CONFIRMED"), + type: import_zod4.z.literal("TOP_UP") + }) +]); +var PendingPaymentCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("PENDING_PAYMENT"), + type: import_zod4.z.literal("PRODUCTS"), + products: import_zod4.z.array(CheckoutProductSchema).nonempty(), + invoice: FixedAmountPendingInvoiceSchema + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("PENDING_PAYMENT"), + type: import_zod4.z.literal("AMOUNT"), + providedAmount: import_zod4.z.number(), + invoice: FixedAmountPendingInvoiceSchema + }), + BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("PENDING_PAYMENT"), + type: import_zod4.z.literal("TOP_UP"), + invoice: DynamicAmountPendingInvoiceSchema + }) +]); +var PaymentReceivedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("PAYMENT_RECEIVED"), + type: import_zod4.z.literal("PRODUCTS"), + products: import_zod4.z.array(CheckoutProductSchema).nonempty(), + invoice: PaidInvoiceSchema + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("PAYMENT_RECEIVED"), + type: import_zod4.z.literal("AMOUNT"), + providedAmount: import_zod4.z.number(), + invoice: PaidInvoiceSchema + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("PAYMENT_RECEIVED"), + type: import_zod4.z.literal("TOP_UP"), + invoice: PaidInvoiceSchema + }) +]); +var CheckoutSchema = import_zod4.z.union([ + UnconfirmedCheckoutSchema, + ConfirmedCheckoutSchema, + PendingPaymentCheckoutSchema, + PaymentReceivedCheckoutSchema, + ExpiredCheckoutSchema +]); + +// src/contracts/checkout.ts +var emptyStringToUndefined = import_zod5.z.string().transform((val) => val.trim() === "" ? void 0 : val); +var emailOrEmpty = import_zod5.z.string().email().optional().or(import_zod5.z.literal("")); +var CustomerFieldSchema2 = import_zod5.z.string().min(1); +var CustomerInputSchema = import_zod5.z.object({ + name: emptyStringToUndefined.optional(), + email: emailOrEmpty, + externalId: emptyStringToUndefined.optional() +}).catchall(import_zod5.z.string()); +var CreateCheckoutInputSchema = import_zod5.z.object({ + nodeId: import_zod5.z.string(), + amount: import_zod5.z.number().optional(), + currency: CurrencySchema.optional(), + products: import_zod5.z.array(import_zod5.z.string()).optional(), + successUrl: import_zod5.z.string().optional(), + allowDiscountCodes: import_zod5.z.boolean().optional(), + metadata: import_zod5.z.record(import_zod5.z.string(), import_zod5.z.any()).optional(), + /** + * Customer data for this checkout. + */ + customer: CustomerInputSchema.optional(), + /** + * Array of customer fields to require at checkout. + * If a field is listed here and not provided, the checkout UI will prompt for it. + * @example ['email'] - require email + * @example ['email', 'name'] - require both + */ + requireCustomerData: import_zod5.z.array(CustomerFieldSchema2).optional() +}); +var ConfirmCheckoutInputSchema = import_zod5.z.object({ + checkoutId: import_zod5.z.string(), + /** + * Customer data provided at confirm time. + */ + customer: CustomerInputSchema.optional(), + /** + * Product selection at confirm time. + * - undefined or [] = keep current selection + * - [{ productId }] = change selection to this product + * - priceAmount required if selected price has amountType: CUSTOM + * + * Currently limited to single selection (max 1 item). + */ + products: import_zod5.z.array( + import_zod5.z.object({ + productId: import_zod5.z.string(), + priceAmount: import_zod5.z.number().optional() + }) + ).max(1).optional() +}); +var ApplyDiscountCodeInputSchema = import_zod5.z.object({ + checkoutId: import_zod5.z.string(), + discountCode: import_zod5.z.string() +}); +var RegisterInvoiceInputSchema = import_zod5.z.object({ + nodeId: import_zod5.z.string(), + scid: import_zod5.z.string(), + checkoutId: import_zod5.z.string(), + invoice: import_zod5.z.string(), + paymentHash: import_zod5.z.string(), + invoiceExpiresAt: import_zod5.z.date() +}); +var PaymentReceivedInputSchema = import_zod5.z.object({ + payments: import_zod5.z.array( + import_zod5.z.object({ + paymentHash: import_zod5.z.string(), + amountSats: import_zod5.z.number(), + sandbox: import_zod5.z.boolean().default(false) + }) + ) +}); +var GetCheckoutInputSchema = import_zod5.z.object({ id: import_zod5.z.string() }); +var createCheckoutContract = import_contract.oc.input(CreateCheckoutInputSchema).output(CheckoutSchema); +var applyDiscountCodeContract = import_contract.oc.input(ApplyDiscountCodeInputSchema).output(CheckoutSchema); +var confirmCheckoutContract = import_contract.oc.input(ConfirmCheckoutInputSchema).output(CheckoutSchema); +var registerInvoiceContract = import_contract.oc.input(RegisterInvoiceInputSchema).output(CheckoutSchema); +var getCheckoutContract = import_contract.oc.input(GetCheckoutInputSchema).output(CheckoutSchema); +var paymentReceivedContract = import_contract.oc.input(PaymentReceivedInputSchema).output(import_zod5.z.object({ ok: import_zod5.z.boolean() })); +var checkout = { + get: getCheckoutContract, + create: createCheckoutContract, + confirm: confirmCheckoutContract, + registerInvoice: registerInvoiceContract, + paymentReceived: paymentReceivedContract +}; + +// src/contracts/onboarding.ts +var import_contract2 = require("@orpc/contract"); + +// src/schemas/onboarding.ts +var import_zod6 = require("zod"); +var StartDeviceAuthInputSchema = import_zod6.z.object({ + clientDisplayName: import_zod6.z.string().optional(), + webhookUrl: import_zod6.z.string().url().optional(), + forceNewWebhook: import_zod6.z.boolean().optional() +}); +var StartDeviceAuthOutputSchema = import_zod6.z.object({ + deviceCode: import_zod6.z.string(), + userCode: import_zod6.z.string(), + verificationUri: import_zod6.z.string().url(), + expiresIn: import_zod6.z.number().int().positive(), + interval: import_zod6.z.number().int().positive() +}); +var PollDeviceAuthInputSchema = import_zod6.z.object({ + deviceCode: import_zod6.z.string() +}); +var PollDeviceAuthOutputSchema = import_zod6.z.discriminatedUnion("status", [ + import_zod6.z.object({ + status: import_zod6.z.literal("pending"), + expiresIn: import_zod6.z.number().int().nonnegative() + }), + import_zod6.z.object({ + status: import_zod6.z.literal("authorized"), + bootstrapToken: import_zod6.z.string(), + expiresIn: import_zod6.z.number().int().nonnegative().optional() + }), + import_zod6.z.object({ + status: import_zod6.z.literal("expired") + }), + import_zod6.z.object({ + status: import_zod6.z.literal("denied") + }) +]); +var BootstrapInputSchema = import_zod6.z.object({ + bootstrapToken: import_zod6.z.string(), + webhookUrl: import_zod6.z.string().url().optional(), + projectName: import_zod6.z.string().optional(), + forceNewWebhook: import_zod6.z.boolean().optional() +}); +var BootstrapOutputSchema = import_zod6.z.object({ + apiKey: import_zod6.z.string(), + apiKeyPreview: import_zod6.z.string(), + apiKeyId: import_zod6.z.string(), + webhookId: import_zod6.z.string(), + webhookSecret: import_zod6.z.string(), + organizationId: import_zod6.z.string(), + webhookUrl: import_zod6.z.string().url() +}); + +// src/contracts/onboarding.ts +var startDeviceAuthContract = import_contract2.oc.input(StartDeviceAuthInputSchema).output(StartDeviceAuthOutputSchema); +var pollDeviceAuthContract = import_contract2.oc.input(PollDeviceAuthInputSchema).output(PollDeviceAuthOutputSchema); +var bootstrapContract = import_contract2.oc.input(BootstrapInputSchema).output(BootstrapOutputSchema); +var onboarding = { + startDeviceAuth: startDeviceAuthContract, + pollDeviceAuth: pollDeviceAuthContract, + bootstrap: bootstrapContract +}; + +// src/contracts/products.ts +var import_contract3 = require("@orpc/contract"); +var import_zod7 = require("zod"); +var ProductPriceSchema = import_zod7.z.object({ + id: import_zod7.z.string(), + amountType: import_zod7.z.enum(["FIXED", "CUSTOM", "FREE"]), + priceAmount: import_zod7.z.number().nullable(), + currency: CurrencySchema +}); +var ProductSchema = import_zod7.z.object({ + id: import_zod7.z.string(), + name: import_zod7.z.string(), + description: import_zod7.z.string().nullable(), + recurringInterval: import_zod7.z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(), + prices: import_zod7.z.array(ProductPriceSchema) +}); +var ListProductsOutputSchema = import_zod7.z.object({ + products: import_zod7.z.array(ProductSchema) +}); +var listProductsContract = import_contract3.oc.input(import_zod7.z.object({}).optional()).output(ListProductsOutputSchema); +var products = { + list: listProductsContract +}; + +// src/lib/utils.ts +function ok(value) { + return { ok: true, value }; +} +function err(error) { + return { ok: false, error }; +} + +// src/validation/metadata-validation.ts +var MAX_METADATA_SIZE_BYTES = 1024; +var MAX_KEY_LENGTH = 100; +var MAX_KEY_COUNT = 50; +var CONTROL_CHAR_PATTERN = /[\x00-\x08\x0B-\x0C\x0E-\x1F]/; +var VALID_KEY_PATTERN = /^[a-zA-Z0-9_-]+$/; +function validateKeyFormat(key) { + if (!VALID_KEY_PATTERN.test(key)) { + const message = key === "" ? "Metadata keys cannot be empty" : `Metadata key "${key}" contains invalid characters. Keys must contain only letters, numbers, underscores, and hyphens.`; + return err({ type: "invalid_key_format", message }); + } + return ok(void 0); +} +function validateKeyLength(key) { + if (key.length > MAX_KEY_LENGTH) { + return err({ + type: "key_too_long", + message: `Metadata key "${key}" exceeds maximum length of ${MAX_KEY_LENGTH} characters` + }); + } + return ok(void 0); +} +function validateNullBytes(key, value) { + if (value.includes("\0")) { + return err({ + type: "control_character", + message: `Metadata value for key "${key}" cannot contain null bytes` + }); + } + return ok(void 0); +} +function validateControlCharacters(key, value) { + if (CONTROL_CHAR_PATTERN.test(value)) { + return err({ + type: "control_character", + message: `Metadata value for key "${key}" cannot contain control characters` + }); + } + return ok(void 0); +} +function validateUtf8Encoding(key, value) { + try { + const encoded = new TextEncoder().encode(value); + new TextDecoder("utf-8", { fatal: true }).decode(encoded); + } catch { + return err({ + type: "invalid_encoding", + message: `Metadata value for key "${key}" contains invalid UTF-8 encoding` + }); + } + return ok(void 0); +} +function validateMetadataSize(metadata) { + const serialized = JSON.stringify(metadata); + const sizeBytes = new TextEncoder().encode(serialized).length; + if (sizeBytes > MAX_METADATA_SIZE_BYTES) { + return err({ + type: "size_exceeded", + message: `Metadata size (${sizeBytes} bytes) exceeds maximum allowed size (${MAX_METADATA_SIZE_BYTES} bytes). To fix this, reduce the size of your metadata values or remove unnecessary fields.` + }); + } + return ok(void 0); +} +function validateKey(key) { + const formatCheck = validateKeyFormat(key); + if (!formatCheck.ok) return formatCheck; + const lengthCheck = validateKeyLength(key); + if (!lengthCheck.ok) return lengthCheck; + return ok(void 0); +} +function validateValue(key, value) { + const nullByteCheck = validateNullBytes(key, value); + if (!nullByteCheck.ok) return nullByteCheck; + const controlCharCheck = validateControlCharacters(key, value); + if (!controlCharCheck.ok) return controlCharCheck; + const encodingCheck = validateUtf8Encoding(key, value); + if (!encodingCheck.ok) return encodingCheck; + return ok(void 0); +} +function validateMetadata(metadata) { + if (!metadata) { + return ok(void 0); + } + const errors = []; + const keyCount = Object.keys(metadata).length; + if (keyCount > MAX_KEY_COUNT) { + errors.push({ + type: "key_count_exceeded", + message: `Metadata contains ${keyCount} keys, which exceeds the maximum of ${MAX_KEY_COUNT} keys` + }); + } + for (const [key, value] of Object.entries(metadata)) { + const keyCheck = validateKey(key); + if (!keyCheck.ok) { + errors.push(keyCheck.error); + } + const valueCheck = validateValue(key, value); + if (!valueCheck.ok) { + errors.push(valueCheck.error); + } + } + const sizeCheck = validateMetadataSize(metadata); + if (!sizeCheck.ok) { + errors.push(sizeCheck.error); + } + if (errors.length > 0) { + return err(errors); + } + return ok(void 0); +} + +// src/index.ts +var contract = { checkout, onboarding, products }; +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + CheckoutSchema, + CurrencySchema, + ListProductsOutputSchema, + MAX_KEY_COUNT, + MAX_KEY_LENGTH, + MAX_METADATA_SIZE_BYTES, + ProductPriceSchema, + ProductSchema, + contract, + validateMetadata +}); diff --git a/dist/index.d.cts b/dist/index.d.cts new file mode 100644 index 0000000..7892f3c --- /dev/null +++ b/dist/index.d.cts @@ -0,0 +1,15609 @@ +import * as _orpc_contract from '@orpc/contract'; +import * as zod from 'zod'; +export { ConfirmCheckout, CreateCheckout, PaymentReceived, RegisterInvoice } from './contracts/checkout.cjs'; +export { BootstrapOnboarding, BootstrapOnboardingResponse, PollDeviceAuth, PollDeviceAuthResponse, StartDeviceAuth, StartDeviceAuth as StartDeviceAuthInput, StartDeviceAuthResponse } from './contracts/onboarding.cjs'; +export { Checkout, CheckoutSchema } from './schemas/checkout.cjs'; +export { Currency, CurrencySchema } from './schemas/currency.cjs'; +export { ListProductsOutputSchema, Product, ProductPrice, ProductPriceSchema, ProductSchema } from './contracts/products.cjs'; +export { MAX_KEY_COUNT, MAX_KEY_LENGTH, MAX_METADATA_SIZE_BYTES, MetadataValidationError, validateMetadata } from './validation/metadata-validation.cjs'; +import './schemas/onboarding.cjs'; +import './lib/utils.cjs'; + +declare const contract: { + checkout: { + get: _orpc_contract.ContractProcedureBuilderWithInputOutput, zod.ZodUnion<[zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"TOP_UP">; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"TOP_UP">; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"TOP_UP">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSats: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"TOP_UP">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>]>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"EXPIRED">; + type: zod.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; + }, "strip", zod.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, Record, Record>; + create: _orpc_contract.ContractProcedureBuilderWithInputOutput; + currency: zod.ZodOptional>; + products: zod.ZodOptional>; + successUrl: zod.ZodOptional; + allowDiscountCodes: zod.ZodOptional; + metadata: zod.ZodOptional>; + customer: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + requireCustomerData: zod.ZodOptional>; + }, "strip", zod.ZodTypeAny, { + nodeId: string; + amount?: number | undefined; + currency?: "USD" | "SAT" | undefined; + products?: string[] | undefined; + successUrl?: string | undefined; + allowDiscountCodes?: boolean | undefined; + metadata?: Record | undefined; + customer?: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | undefined; + requireCustomerData?: string[] | undefined; + }, { + nodeId: string; + amount?: number | undefined; + currency?: "USD" | "SAT" | undefined; + products?: string[] | undefined; + successUrl?: string | undefined; + allowDiscountCodes?: boolean | undefined; + metadata?: Record | undefined; + customer?: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | undefined; + requireCustomerData?: string[] | undefined; + }>, zod.ZodUnion<[zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"TOP_UP">; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"TOP_UP">; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"TOP_UP">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSats: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"TOP_UP">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>]>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"EXPIRED">; + type: zod.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; + }, "strip", zod.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, Record, Record>; + confirm: _orpc_contract.ContractProcedureBuilderWithInputOutput>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + products: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + productId: string; + priceAmount?: number | undefined; + }, { + productId: string; + priceAmount?: number | undefined; + }>, "many">>; + }, "strip", zod.ZodTypeAny, { + checkoutId: string; + products?: { + productId: string; + priceAmount?: number | undefined; + }[] | undefined; + customer?: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | undefined; + }, { + checkoutId: string; + products?: { + productId: string; + priceAmount?: number | undefined; + }[] | undefined; + customer?: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | undefined; + }>, zod.ZodUnion<[zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"TOP_UP">; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"TOP_UP">; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"TOP_UP">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSats: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"TOP_UP">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>]>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"EXPIRED">; + type: zod.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; + }, "strip", zod.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, Record, Record>; + registerInvoice: _orpc_contract.ContractProcedureBuilderWithInputOutput, zod.ZodUnion<[zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"TOP_UP">; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"TOP_UP">; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"TOP_UP">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSats: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"TOP_UP">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>]>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"EXPIRED">; + type: zod.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; + }, "strip", zod.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, Record, Record>; + paymentReceived: _orpc_contract.ContractProcedureBuilderWithInputOutput; + }, "strip", zod.ZodTypeAny, { + paymentHash: string; + amountSats: number; + sandbox: boolean; + }, { + paymentHash: string; + amountSats: number; + sandbox?: boolean | undefined; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + payments: { + paymentHash: string; + amountSats: number; + sandbox: boolean; + }[]; + }, { + payments: { + paymentHash: string; + amountSats: number; + sandbox?: boolean | undefined; + }[]; + }>, zod.ZodObject<{ + ok: zod.ZodBoolean; + }, "strip", zod.ZodTypeAny, { + ok: boolean; + }, { + ok: boolean; + }>, Record, Record>; + }; + onboarding: { + startDeviceAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput; + webhookUrl: zod.ZodOptional; + forceNewWebhook: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + clientDisplayName?: string | undefined; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + }, { + clientDisplayName?: string | undefined; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + }>, zod.ZodObject<{ + deviceCode: zod.ZodString; + userCode: zod.ZodString; + verificationUri: zod.ZodString; + expiresIn: zod.ZodNumber; + interval: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + deviceCode: string; + userCode: string; + verificationUri: string; + expiresIn: number; + interval: number; + }, { + deviceCode: string; + userCode: string; + verificationUri: string; + expiresIn: number; + interval: number; + }>, Record, Record>; + pollDeviceAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput, zod.ZodDiscriminatedUnion<"status", [zod.ZodObject<{ + status: zod.ZodLiteral<"pending">; + expiresIn: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "pending"; + expiresIn: number; + }, { + status: "pending"; + expiresIn: number; + }>, zod.ZodObject<{ + status: zod.ZodLiteral<"authorized">; + bootstrapToken: zod.ZodString; + expiresIn: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + status: "authorized"; + bootstrapToken: string; + expiresIn?: number | undefined; + }, { + status: "authorized"; + bootstrapToken: string; + expiresIn?: number | undefined; + }>, zod.ZodObject<{ + status: zod.ZodLiteral<"expired">; + }, "strip", zod.ZodTypeAny, { + status: "expired"; + }, { + status: "expired"; + }>, zod.ZodObject<{ + status: zod.ZodLiteral<"denied">; + }, "strip", zod.ZodTypeAny, { + status: "denied"; + }, { + status: "denied"; + }>]>, Record, Record>; + bootstrap: _orpc_contract.ContractProcedureBuilderWithInputOutput; + projectName: zod.ZodOptional; + forceNewWebhook: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + bootstrapToken: string; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + projectName?: string | undefined; + }, { + bootstrapToken: string; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + projectName?: string | undefined; + }>, zod.ZodObject<{ + apiKey: zod.ZodString; + apiKeyPreview: zod.ZodString; + apiKeyId: zod.ZodString; + webhookId: zod.ZodString; + webhookSecret: zod.ZodString; + organizationId: zod.ZodString; + webhookUrl: zod.ZodString; + }, "strip", zod.ZodTypeAny, { + organizationId: string; + webhookUrl: string; + apiKey: string; + apiKeyPreview: string; + apiKeyId: string; + webhookId: string; + webhookSecret: string; + }, { + organizationId: string; + webhookUrl: string; + apiKey: string; + apiKeyPreview: string; + apiKeyId: string; + webhookId: string; + webhookSecret: string; + }>, Record, Record>; + }; + products: { + list: _orpc_contract.ContractProcedureBuilderWithInputOutput>, zod.ZodObject<{ + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]; + }, { + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]; + }>, Record, Record>; + }; +}; + +export { contract }; diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..98f32e8 --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,15609 @@ +import * as _orpc_contract from '@orpc/contract'; +import * as zod from 'zod'; +export { ConfirmCheckout, CreateCheckout, PaymentReceived, RegisterInvoice } from './contracts/checkout.js'; +export { BootstrapOnboarding, BootstrapOnboardingResponse, PollDeviceAuth, PollDeviceAuthResponse, StartDeviceAuth, StartDeviceAuth as StartDeviceAuthInput, StartDeviceAuthResponse } from './contracts/onboarding.js'; +export { Checkout, CheckoutSchema } from './schemas/checkout.js'; +export { Currency, CurrencySchema } from './schemas/currency.js'; +export { ListProductsOutputSchema, Product, ProductPrice, ProductPriceSchema, ProductSchema } from './contracts/products.js'; +export { MAX_KEY_COUNT, MAX_KEY_LENGTH, MAX_METADATA_SIZE_BYTES, MetadataValidationError, validateMetadata } from './validation/metadata-validation.js'; +import './schemas/onboarding.js'; +import './lib/utils.js'; + +declare const contract: { + checkout: { + get: _orpc_contract.ContractProcedureBuilderWithInputOutput, zod.ZodUnion<[zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"TOP_UP">; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"TOP_UP">; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"TOP_UP">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSats: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"TOP_UP">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>]>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"EXPIRED">; + type: zod.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; + }, "strip", zod.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, Record, Record>; + create: _orpc_contract.ContractProcedureBuilderWithInputOutput; + currency: zod.ZodOptional>; + products: zod.ZodOptional>; + successUrl: zod.ZodOptional; + allowDiscountCodes: zod.ZodOptional; + metadata: zod.ZodOptional>; + customer: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + requireCustomerData: zod.ZodOptional>; + }, "strip", zod.ZodTypeAny, { + nodeId: string; + amount?: number | undefined; + currency?: "USD" | "SAT" | undefined; + products?: string[] | undefined; + successUrl?: string | undefined; + allowDiscountCodes?: boolean | undefined; + metadata?: Record | undefined; + customer?: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | undefined; + requireCustomerData?: string[] | undefined; + }, { + nodeId: string; + amount?: number | undefined; + currency?: "USD" | "SAT" | undefined; + products?: string[] | undefined; + successUrl?: string | undefined; + allowDiscountCodes?: boolean | undefined; + metadata?: Record | undefined; + customer?: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | undefined; + requireCustomerData?: string[] | undefined; + }>, zod.ZodUnion<[zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"TOP_UP">; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"TOP_UP">; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"TOP_UP">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSats: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"TOP_UP">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>]>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"EXPIRED">; + type: zod.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; + }, "strip", zod.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, Record, Record>; + confirm: _orpc_contract.ContractProcedureBuilderWithInputOutput>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + products: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + productId: string; + priceAmount?: number | undefined; + }, { + productId: string; + priceAmount?: number | undefined; + }>, "many">>; + }, "strip", zod.ZodTypeAny, { + checkoutId: string; + products?: { + productId: string; + priceAmount?: number | undefined; + }[] | undefined; + customer?: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | undefined; + }, { + checkoutId: string; + products?: { + productId: string; + priceAmount?: number | undefined; + }[] | undefined; + customer?: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | undefined; + }>, zod.ZodUnion<[zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"TOP_UP">; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"TOP_UP">; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"TOP_UP">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSats: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"TOP_UP">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>]>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"EXPIRED">; + type: zod.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; + }, "strip", zod.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, Record, Record>; + registerInvoice: _orpc_contract.ContractProcedureBuilderWithInputOutput, zod.ZodUnion<[zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"UNCONFIRMED">; + type: zod.ZodLiteral<"TOP_UP">; + }, "strip", zod.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"CONFIRMED">; + type: zod.ZodLiteral<"TOP_UP">; + }, "strip", zod.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + } & { + status: zod.ZodLiteral<"PENDING_PAYMENT">; + type: zod.ZodLiteral<"TOP_UP">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + amountSats: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"PRODUCTS">; + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"AMOUNT">; + providedAmount: zod.ZodNumber; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + totalAmount: zod.ZodNumber; + discountAmount: zod.ZodNumber; + netAmount: zod.ZodNumber; + taxAmount: zod.ZodNumber; + invoiceAmountSats: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + status: zod.ZodLiteral<"PAYMENT_RECEIVED">; + type: zod.ZodLiteral<"TOP_UP">; + invoice: zod.ZodObject<{ + invoice: zod.ZodString; + expiresAt: zod.ZodDate; + paymentHash: zod.ZodString; + currency: zod.ZodEnum<["USD", "SAT"]>; + amountSats: zod.ZodNumber; + fiatAmount: zod.ZodNumber; + btcPrice: zod.ZodNumber; + } & { + amountSatsReceived: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; + }, "strip", zod.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; + }>]>, zod.ZodObject<{ + id: zod.ZodString; + createdAt: zod.ZodDate; + clientSecret: zod.ZodString; + organizationId: zod.ZodString; + expiresAt: zod.ZodDate; + userMetadata: zod.ZodNullable>; + customFieldData: zod.ZodNullable>; + currency: zod.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: zod.ZodBoolean; + requireCustomerData: zod.ZodNullable>; + successUrl: zod.ZodNullable; + customer: zod.ZodNullable>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, "strip", zod.ZodString, zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">, zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip">>>; + customerBillingAddress: zod.ZodNullable>; + products: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: zod.ZodNullable; + productPriceId: zod.ZodNullable; + customAmount: zod.ZodNullable; + product: zod.ZodNullable; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: zod.ZodNullable; + totalAmount: zod.ZodNullable; + discountAmount: zod.ZodNullable; + netAmount: zod.ZodNullable; + taxAmount: zod.ZodNullable; + invoiceAmountSats: zod.ZodNullable; + invoiceScid: zod.ZodNullable; + btcPrice: zod.ZodNullable; + invoice: zod.ZodNullable; + amountSatsReceived: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + fiatAmount: zod.ZodNullable; + btcPrice: zod.ZodNullable; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + } & { + status: zod.ZodLiteral<"EXPIRED">; + type: zod.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; + }, "strip", zod.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectOutputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: zod.objectInputType<{ + name: zod.ZodOptional>; + email: zod.ZodOptional>; + externalId: zod.ZodOptional>; + }, zod.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; + }>]>, Record, Record>; + paymentReceived: _orpc_contract.ContractProcedureBuilderWithInputOutput; + }, "strip", zod.ZodTypeAny, { + paymentHash: string; + amountSats: number; + sandbox: boolean; + }, { + paymentHash: string; + amountSats: number; + sandbox?: boolean | undefined; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + payments: { + paymentHash: string; + amountSats: number; + sandbox: boolean; + }[]; + }, { + payments: { + paymentHash: string; + amountSats: number; + sandbox?: boolean | undefined; + }[]; + }>, zod.ZodObject<{ + ok: zod.ZodBoolean; + }, "strip", zod.ZodTypeAny, { + ok: boolean; + }, { + ok: boolean; + }>, Record, Record>; + }; + onboarding: { + startDeviceAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput; + webhookUrl: zod.ZodOptional; + forceNewWebhook: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + clientDisplayName?: string | undefined; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + }, { + clientDisplayName?: string | undefined; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + }>, zod.ZodObject<{ + deviceCode: zod.ZodString; + userCode: zod.ZodString; + verificationUri: zod.ZodString; + expiresIn: zod.ZodNumber; + interval: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + deviceCode: string; + userCode: string; + verificationUri: string; + expiresIn: number; + interval: number; + }, { + deviceCode: string; + userCode: string; + verificationUri: string; + expiresIn: number; + interval: number; + }>, Record, Record>; + pollDeviceAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput, zod.ZodDiscriminatedUnion<"status", [zod.ZodObject<{ + status: zod.ZodLiteral<"pending">; + expiresIn: zod.ZodNumber; + }, "strip", zod.ZodTypeAny, { + status: "pending"; + expiresIn: number; + }, { + status: "pending"; + expiresIn: number; + }>, zod.ZodObject<{ + status: zod.ZodLiteral<"authorized">; + bootstrapToken: zod.ZodString; + expiresIn: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + status: "authorized"; + bootstrapToken: string; + expiresIn?: number | undefined; + }, { + status: "authorized"; + bootstrapToken: string; + expiresIn?: number | undefined; + }>, zod.ZodObject<{ + status: zod.ZodLiteral<"expired">; + }, "strip", zod.ZodTypeAny, { + status: "expired"; + }, { + status: "expired"; + }>, zod.ZodObject<{ + status: zod.ZodLiteral<"denied">; + }, "strip", zod.ZodTypeAny, { + status: "denied"; + }, { + status: "denied"; + }>]>, Record, Record>; + bootstrap: _orpc_contract.ContractProcedureBuilderWithInputOutput; + projectName: zod.ZodOptional; + forceNewWebhook: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + bootstrapToken: string; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + projectName?: string | undefined; + }, { + bootstrapToken: string; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + projectName?: string | undefined; + }>, zod.ZodObject<{ + apiKey: zod.ZodString; + apiKeyPreview: zod.ZodString; + apiKeyId: zod.ZodString; + webhookId: zod.ZodString; + webhookSecret: zod.ZodString; + organizationId: zod.ZodString; + webhookUrl: zod.ZodString; + }, "strip", zod.ZodTypeAny, { + organizationId: string; + webhookUrl: string; + apiKey: string; + apiKeyPreview: string; + apiKeyId: string; + webhookId: string; + webhookSecret: string; + }, { + organizationId: string; + webhookUrl: string; + apiKey: string; + apiKeyPreview: string; + apiKeyId: string; + webhookId: string; + webhookSecret: string; + }>, Record, Record>; + }; + products: { + list: _orpc_contract.ContractProcedureBuilderWithInputOutput>, zod.ZodObject<{ + products: zod.ZodArray; + recurringInterval: zod.ZodNullable>; + prices: zod.ZodArray; + priceAmount: zod.ZodNullable; + currency: zod.ZodEnum<["USD", "SAT"]>; + }, "strip", zod.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">; + }, "strip", zod.ZodTypeAny, { + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]; + }, { + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]; + }>, Record, Record>; + }; +}; + +export { contract }; diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..e66bccd --- /dev/null +++ b/dist/index.js @@ -0,0 +1,43 @@ +import { + checkout +} from "./chunk-6XWZHZXK.js"; +import { + onboarding +} from "./chunk-RZPQSVO3.js"; +import "./chunk-WJ6HHWDE.js"; +import { + ListProductsOutputSchema, + ProductPriceSchema, + ProductSchema, + products +} from "./chunk-Y6DXID65.js"; +import { + MAX_KEY_COUNT, + MAX_KEY_LENGTH, + MAX_METADATA_SIZE_BYTES, + validateMetadata +} from "./chunk-DVDEDUJU.js"; +import "./chunk-OJKHC5SH.js"; +import { + CheckoutSchema +} from "./chunk-7EZSTHMJ.js"; +import "./chunk-TGG53ETU.js"; +import "./chunk-CD4U22RQ.js"; +import { + CurrencySchema +} from "./chunk-6M6LFZ3U.js"; + +// src/index.ts +var contract = { checkout, onboarding, products }; +export { + CheckoutSchema, + CurrencySchema, + ListProductsOutputSchema, + MAX_KEY_COUNT, + MAX_KEY_LENGTH, + MAX_METADATA_SIZE_BYTES, + ProductPriceSchema, + ProductSchema, + contract, + validateMetadata +}; diff --git a/dist/lib/utils.cjs b/dist/lib/utils.cjs new file mode 100644 index 0000000..94ee4cf --- /dev/null +++ b/dist/lib/utils.cjs @@ -0,0 +1,37 @@ +"use strict"; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/lib/utils.ts +var utils_exports = {}; +__export(utils_exports, { + err: () => err, + ok: () => ok +}); +module.exports = __toCommonJS(utils_exports); +function ok(value) { + return { ok: true, value }; +} +function err(error) { + return { ok: false, error }; +} +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + err, + ok +}); diff --git a/dist/lib/utils.d.cts b/dist/lib/utils.d.cts new file mode 100644 index 0000000..281e825 --- /dev/null +++ b/dist/lib/utils.d.cts @@ -0,0 +1,40 @@ +/** + * Generic Result type for operations that can succeed or fail. + * + * This is a discriminated union that provides type-safe error handling + * without throwing exceptions. The `ok` property acts as the discriminator. + * + * @example + * ```typescript + * function divide(a: number, b: number): Result { + * if (b === 0) { + * return { ok: false, error: 'Division by zero' } + * } + * return { ok: true, value: a / b } + * } + * + * const result = divide(10, 2) + * if (result.ok) { + * console.log(result.value) // TypeScript knows result.value exists + * } else { + * console.error(result.error) // TypeScript knows result.error exists + * } + * ``` + */ +type Result = { + ok: true; + value: T; +} | { + ok: false; + error: E; +}; +/** + * Creates a successful Result + */ +declare function ok(value: T): Result; +/** + * Creates a failed Result + */ +declare function err(error: E): Result; + +export { type Result, err, ok }; diff --git a/dist/lib/utils.d.ts b/dist/lib/utils.d.ts new file mode 100644 index 0000000..281e825 --- /dev/null +++ b/dist/lib/utils.d.ts @@ -0,0 +1,40 @@ +/** + * Generic Result type for operations that can succeed or fail. + * + * This is a discriminated union that provides type-safe error handling + * without throwing exceptions. The `ok` property acts as the discriminator. + * + * @example + * ```typescript + * function divide(a: number, b: number): Result { + * if (b === 0) { + * return { ok: false, error: 'Division by zero' } + * } + * return { ok: true, value: a / b } + * } + * + * const result = divide(10, 2) + * if (result.ok) { + * console.log(result.value) // TypeScript knows result.value exists + * } else { + * console.error(result.error) // TypeScript knows result.error exists + * } + * ``` + */ +type Result = { + ok: true; + value: T; +} | { + ok: false; + error: E; +}; +/** + * Creates a successful Result + */ +declare function ok(value: T): Result; +/** + * Creates a failed Result + */ +declare function err(error: E): Result; + +export { type Result, err, ok }; diff --git a/dist/lib/utils.js b/dist/lib/utils.js new file mode 100644 index 0000000..d320049 --- /dev/null +++ b/dist/lib/utils.js @@ -0,0 +1,8 @@ +import { + err, + ok +} from "../chunk-OJKHC5SH.js"; +export { + err, + ok +}; diff --git a/dist/schemas/checkout.cjs b/dist/schemas/checkout.cjs new file mode 100644 index 0000000..491a2bf --- /dev/null +++ b/dist/schemas/checkout.cjs @@ -0,0 +1,243 @@ +"use strict"; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/schemas/checkout.ts +var checkout_exports = {}; +__export(checkout_exports, { + CheckoutSchema: () => CheckoutSchema, + ConfirmedCheckoutSchema: () => ConfirmedCheckoutSchema, + ExpiredCheckoutSchema: () => ExpiredCheckoutSchema, + PaymentReceivedCheckoutSchema: () => PaymentReceivedCheckoutSchema, + PendingPaymentCheckoutSchema: () => PendingPaymentCheckoutSchema, + UnconfirmedCheckoutSchema: () => UnconfirmedCheckoutSchema +}); +module.exports = __toCommonJS(checkout_exports); +var import_zod4 = require("zod"); + +// src/schemas/currency.ts +var import_zod = require("zod"); +var CurrencySchema = import_zod.z.enum(["USD", "SAT"]); + +// src/schemas/invoice.ts +var import_zod2 = require("zod"); +var BaseInvoiceSchema = import_zod2.z.object({ + invoice: import_zod2.z.string(), + expiresAt: import_zod2.z.date(), + paymentHash: import_zod2.z.string(), + amountSats: import_zod2.z.number().nullable(), + amountSatsReceived: import_zod2.z.number().nullable(), + currency: CurrencySchema, + fiatAmount: import_zod2.z.number().nullable(), + btcPrice: import_zod2.z.number().nullable() +}); +var FixedAmountPendingInvoiceSchema = BaseInvoiceSchema.extend({ + amountSats: import_zod2.z.number(), + fiatAmount: import_zod2.z.number(), + btcPrice: import_zod2.z.number() +}); +var DynamicAmountPendingInvoiceSchema = BaseInvoiceSchema; +var PaidInvoiceSchema = FixedAmountPendingInvoiceSchema.extend({ + amountSatsReceived: import_zod2.z.number() +}); + +// src/schemas/product.ts +var import_zod3 = require("zod"); +var CheckoutProductPriceSchema = import_zod3.z.object({ + id: import_zod3.z.string(), + amountType: import_zod3.z.enum(["FIXED", "CUSTOM", "FREE"]), + priceAmount: import_zod3.z.number().nullable(), + currency: CurrencySchema +}); +var CheckoutProductSchema = import_zod3.z.object({ + id: import_zod3.z.string(), + name: import_zod3.z.string(), + description: import_zod3.z.string().nullable(), + recurringInterval: import_zod3.z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(), + prices: import_zod3.z.array(CheckoutProductPriceSchema) +}); + +// src/schemas/checkout.ts +var CustomerFieldSchema = import_zod4.z.string().min(1); +var CustomerOutputSchema = import_zod4.z.object({ + name: import_zod4.z.string().nullish(), + email: import_zod4.z.string().email().nullish(), + externalId: import_zod4.z.string().nullish() +}).catchall(import_zod4.z.string()); +var BaseCheckoutSchema = import_zod4.z.object({ + id: import_zod4.z.string(), + createdAt: import_zod4.z.date(), + clientSecret: import_zod4.z.string(), + type: import_zod4.z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]), + status: import_zod4.z.enum([ + "UNCONFIRMED", + "CONFIRMED", + "PENDING_PAYMENT", + "PAYMENT_RECEIVED", + "EXPIRED" + ]), + organizationId: import_zod4.z.string(), + expiresAt: import_zod4.z.date(), + userMetadata: import_zod4.z.record(import_zod4.z.any()).nullable(), + customFieldData: import_zod4.z.record(import_zod4.z.any()).nullable(), + currency: CurrencySchema, + allowDiscountCodes: import_zod4.z.boolean(), + /** + * Array of customer fields required at checkout. + * @example ['email'] - email required + * @example ['email', 'name'] - both required + */ + requireCustomerData: import_zod4.z.array(CustomerFieldSchema).nullable(), + successUrl: import_zod4.z.string().nullable(), + /** + * Customer data associated with this checkout. + */ + customer: CustomerOutputSchema.nullable(), + customerBillingAddress: import_zod4.z.record(import_zod4.z.any()).nullable(), + products: import_zod4.z.array(CheckoutProductSchema).nullable(), + /** + * The selected product ID (from the products array). + * For PRODUCTS checkouts, this is the product the customer has chosen. + * null for AMOUNT/TOP_UP checkouts. + */ + productId: import_zod4.z.string().nullable(), + /** + * The selected product price ID. + * References a price from the selected product's prices array. + * null for AMOUNT/TOP_UP checkouts. + */ + productPriceId: import_zod4.z.string().nullable(), + /** + * User-provided amount for CUSTOM price products. + * Only set when the selected price has amountType: CUSTOM. + */ + customAmount: import_zod4.z.number().nullable(), + /** + * The selected product with full details (convenience field). + * Same shape as items in the products array. + * null if no product is selected. + */ + product: CheckoutProductSchema.nullable(), + providedAmount: import_zod4.z.number().nullable(), + totalAmount: import_zod4.z.number().nullable(), + discountAmount: import_zod4.z.number().nullable(), + netAmount: import_zod4.z.number().nullable(), + taxAmount: import_zod4.z.number().nullable(), + invoiceAmountSats: import_zod4.z.number().nullable(), + invoiceScid: import_zod4.z.string().nullable(), + btcPrice: import_zod4.z.number().nullable(), + invoice: BaseInvoiceSchema.nullable() +}); +var AmountFieldsSchema = import_zod4.z.object({ + totalAmount: import_zod4.z.number(), + discountAmount: import_zod4.z.number(), + netAmount: import_zod4.z.number(), + taxAmount: import_zod4.z.number(), + invoiceAmountSats: import_zod4.z.number(), + btcPrice: import_zod4.z.number() +}); +var ExpiredCheckoutSchema = BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("EXPIRED"), + type: import_zod4.z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]) +}); +var UnconfirmedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ + BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("UNCONFIRMED"), + type: import_zod4.z.literal("PRODUCTS"), + products: import_zod4.z.array(CheckoutProductSchema).nonempty() + }), + BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("UNCONFIRMED"), + type: import_zod4.z.literal("AMOUNT"), + providedAmount: import_zod4.z.number() + }), + BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("UNCONFIRMED"), + type: import_zod4.z.literal("TOP_UP") + }) +]); +var ConfirmedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("CONFIRMED"), + type: import_zod4.z.literal("PRODUCTS"), + products: import_zod4.z.array(CheckoutProductSchema).nonempty() + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("CONFIRMED"), + type: import_zod4.z.literal("AMOUNT"), + providedAmount: import_zod4.z.number() + }), + BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("CONFIRMED"), + type: import_zod4.z.literal("TOP_UP") + }) +]); +var PendingPaymentCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("PENDING_PAYMENT"), + type: import_zod4.z.literal("PRODUCTS"), + products: import_zod4.z.array(CheckoutProductSchema).nonempty(), + invoice: FixedAmountPendingInvoiceSchema + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("PENDING_PAYMENT"), + type: import_zod4.z.literal("AMOUNT"), + providedAmount: import_zod4.z.number(), + invoice: FixedAmountPendingInvoiceSchema + }), + BaseCheckoutSchema.extend({ + status: import_zod4.z.literal("PENDING_PAYMENT"), + type: import_zod4.z.literal("TOP_UP"), + invoice: DynamicAmountPendingInvoiceSchema + }) +]); +var PaymentReceivedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("PAYMENT_RECEIVED"), + type: import_zod4.z.literal("PRODUCTS"), + products: import_zod4.z.array(CheckoutProductSchema).nonempty(), + invoice: PaidInvoiceSchema + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("PAYMENT_RECEIVED"), + type: import_zod4.z.literal("AMOUNT"), + providedAmount: import_zod4.z.number(), + invoice: PaidInvoiceSchema + }), + BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ + status: import_zod4.z.literal("PAYMENT_RECEIVED"), + type: import_zod4.z.literal("TOP_UP"), + invoice: PaidInvoiceSchema + }) +]); +var CheckoutSchema = import_zod4.z.union([ + UnconfirmedCheckoutSchema, + ConfirmedCheckoutSchema, + PendingPaymentCheckoutSchema, + PaymentReceivedCheckoutSchema, + ExpiredCheckoutSchema +]); +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + CheckoutSchema, + ConfirmedCheckoutSchema, + ExpiredCheckoutSchema, + PaymentReceivedCheckoutSchema, + PendingPaymentCheckoutSchema, + UnconfirmedCheckoutSchema +}); diff --git a/dist/schemas/checkout.d.cts b/dist/schemas/checkout.d.cts new file mode 100644 index 0000000..6c034ac --- /dev/null +++ b/dist/schemas/checkout.d.cts @@ -0,0 +1,7633 @@ +import { z } from 'zod'; + +declare const ExpiredCheckoutSchema: z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; +}, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>; +declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>; +declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>; +declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>; +declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>]>; +declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; +}, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>; +type Checkout = z.infer; + +export { type Checkout, CheckoutSchema, ConfirmedCheckoutSchema, ExpiredCheckoutSchema, PaymentReceivedCheckoutSchema, PendingPaymentCheckoutSchema, UnconfirmedCheckoutSchema }; diff --git a/dist/schemas/checkout.d.ts b/dist/schemas/checkout.d.ts new file mode 100644 index 0000000..6c034ac --- /dev/null +++ b/dist/schemas/checkout.d.ts @@ -0,0 +1,7633 @@ +import { z } from 'zod'; + +declare const ExpiredCheckoutSchema: z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; +}, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>; +declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>; +declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>; +declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>; +declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>]>; +declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"UNCONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "UNCONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "CONFIRMED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"CONFIRMED">; + type: z.ZodLiteral<"TOP_UP">; +}, "strip", z.ZodTypeAny, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "CONFIRMED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + } & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PENDING_PAYMENT"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; +} & { + status: z.ZodLiteral<"PENDING_PAYMENT">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>; +}, "strip", z.ZodTypeAny, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "PENDING_PAYMENT"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"PRODUCTS">; + products: z.ZodArray; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "atleastone">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "PRODUCTS"; + currency: "USD" | "SAT"; + products: [{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, ...{ + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[]]; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"AMOUNT">; + providedAmount: z.ZodNumber; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "AMOUNT"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + invoiceScid: z.ZodNullable; + totalAmount: z.ZodNumber; + discountAmount: z.ZodNumber; + netAmount: z.ZodNumber; + taxAmount: z.ZodNumber; + invoiceAmountSats: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + status: z.ZodLiteral<"PAYMENT_RECEIVED">; + type: z.ZodLiteral<"TOP_UP">; + invoice: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; + } & { + amountSatsReceived: z.ZodNumber; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }>; +}, "strip", z.ZodTypeAny, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}, { + status: "PAYMENT_RECEIVED"; + type: "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; + }; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number; + discountAmount: number; + netAmount: number; + taxAmount: number; + invoiceAmountSats: number; + invoiceScid: string | null; + btcPrice: number; +}>]>, z.ZodObject<{ + id: z.ZodString; + createdAt: z.ZodDate; + clientSecret: z.ZodString; + organizationId: z.ZodString; + expiresAt: z.ZodDate; + userMetadata: z.ZodNullable>; + customFieldData: z.ZodNullable>; + currency: z.ZodEnum<["USD", "SAT"]>; + allowDiscountCodes: z.ZodBoolean; + requireCustomerData: z.ZodNullable>; + successUrl: z.ZodNullable; + customer: z.ZodNullable>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, "strip", z.ZodString, z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">, z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip">>>; + customerBillingAddress: z.ZodNullable>; + products: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>, "many">>; + productId: z.ZodNullable; + productPriceId: z.ZodNullable; + customAmount: z.ZodNullable; + product: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; + }, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }>>; + providedAmount: z.ZodNullable; + totalAmount: z.ZodNullable; + discountAmount: z.ZodNullable; + netAmount: z.ZodNullable; + taxAmount: z.ZodNullable; + invoiceAmountSats: z.ZodNullable; + invoiceScid: z.ZodNullable; + btcPrice: z.ZodNullable; + invoice: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + }>>; +} & { + status: z.ZodLiteral<"EXPIRED">; + type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; +}, "strip", z.ZodTypeAny, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectOutputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}, { + status: "EXPIRED"; + type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; + currency: "USD" | "SAT"; + products: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + }[] | null; + successUrl: string | null; + allowDiscountCodes: boolean; + customer: z.objectInputType<{ + name: z.ZodOptional>; + email: z.ZodOptional>; + externalId: z.ZodOptional>; + }, z.ZodString, "strip"> | null; + requireCustomerData: string[] | null; + productId: string | null; + invoice: { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; + } | null; + id: string; + createdAt: Date; + clientSecret: string; + organizationId: string; + expiresAt: Date; + userMetadata: Record | null; + customFieldData: Record | null; + customerBillingAddress: Record | null; + productPriceId: string | null; + customAmount: number | null; + product: { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; + } | null; + providedAmount: number | null; + totalAmount: number | null; + discountAmount: number | null; + netAmount: number | null; + taxAmount: number | null; + invoiceAmountSats: number | null; + invoiceScid: string | null; + btcPrice: number | null; +}>]>; +type Checkout = z.infer; + +export { type Checkout, CheckoutSchema, ConfirmedCheckoutSchema, ExpiredCheckoutSchema, PaymentReceivedCheckoutSchema, PendingPaymentCheckoutSchema, UnconfirmedCheckoutSchema }; diff --git a/dist/schemas/checkout.js b/dist/schemas/checkout.js new file mode 100644 index 0000000..8163a16 --- /dev/null +++ b/dist/schemas/checkout.js @@ -0,0 +1,19 @@ +import { + CheckoutSchema, + ConfirmedCheckoutSchema, + ExpiredCheckoutSchema, + PaymentReceivedCheckoutSchema, + PendingPaymentCheckoutSchema, + UnconfirmedCheckoutSchema +} from "../chunk-7EZSTHMJ.js"; +import "../chunk-TGG53ETU.js"; +import "../chunk-CD4U22RQ.js"; +import "../chunk-6M6LFZ3U.js"; +export { + CheckoutSchema, + ConfirmedCheckoutSchema, + ExpiredCheckoutSchema, + PaymentReceivedCheckoutSchema, + PendingPaymentCheckoutSchema, + UnconfirmedCheckoutSchema +}; diff --git a/dist/schemas/currency.cjs b/dist/schemas/currency.cjs new file mode 100644 index 0000000..9205b02 --- /dev/null +++ b/dist/schemas/currency.cjs @@ -0,0 +1,31 @@ +"use strict"; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/schemas/currency.ts +var currency_exports = {}; +__export(currency_exports, { + CurrencySchema: () => CurrencySchema +}); +module.exports = __toCommonJS(currency_exports); +var import_zod = require("zod"); +var CurrencySchema = import_zod.z.enum(["USD", "SAT"]); +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + CurrencySchema +}); diff --git a/dist/schemas/currency.d.cts b/dist/schemas/currency.d.cts new file mode 100644 index 0000000..89ea8c3 --- /dev/null +++ b/dist/schemas/currency.d.cts @@ -0,0 +1,11 @@ +import { z } from 'zod'; + +/** + * Supported currencies for pricing and payments. + * - USD: US Dollars (amounts in cents) + * - SAT: Satoshis (amounts in whole sats) + */ +declare const CurrencySchema: z.ZodEnum<["USD", "SAT"]>; +type Currency = z.infer; + +export { type Currency, CurrencySchema }; diff --git a/dist/schemas/currency.d.ts b/dist/schemas/currency.d.ts new file mode 100644 index 0000000..89ea8c3 --- /dev/null +++ b/dist/schemas/currency.d.ts @@ -0,0 +1,11 @@ +import { z } from 'zod'; + +/** + * Supported currencies for pricing and payments. + * - USD: US Dollars (amounts in cents) + * - SAT: Satoshis (amounts in whole sats) + */ +declare const CurrencySchema: z.ZodEnum<["USD", "SAT"]>; +type Currency = z.infer; + +export { type Currency, CurrencySchema }; diff --git a/dist/schemas/currency.js b/dist/schemas/currency.js new file mode 100644 index 0000000..3363402 --- /dev/null +++ b/dist/schemas/currency.js @@ -0,0 +1,6 @@ +import { + CurrencySchema +} from "../chunk-6M6LFZ3U.js"; +export { + CurrencySchema +}; diff --git a/dist/schemas/invoice.cjs b/dist/schemas/invoice.cjs new file mode 100644 index 0000000..2500f19 --- /dev/null +++ b/dist/schemas/invoice.cjs @@ -0,0 +1,61 @@ +"use strict"; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/schemas/invoice.ts +var invoice_exports = {}; +__export(invoice_exports, { + BaseInvoiceSchema: () => BaseInvoiceSchema, + DynamicAmountPendingInvoiceSchema: () => DynamicAmountPendingInvoiceSchema, + FixedAmountPendingInvoiceSchema: () => FixedAmountPendingInvoiceSchema, + PaidInvoiceSchema: () => PaidInvoiceSchema +}); +module.exports = __toCommonJS(invoice_exports); +var import_zod2 = require("zod"); + +// src/schemas/currency.ts +var import_zod = require("zod"); +var CurrencySchema = import_zod.z.enum(["USD", "SAT"]); + +// src/schemas/invoice.ts +var BaseInvoiceSchema = import_zod2.z.object({ + invoice: import_zod2.z.string(), + expiresAt: import_zod2.z.date(), + paymentHash: import_zod2.z.string(), + amountSats: import_zod2.z.number().nullable(), + amountSatsReceived: import_zod2.z.number().nullable(), + currency: CurrencySchema, + fiatAmount: import_zod2.z.number().nullable(), + btcPrice: import_zod2.z.number().nullable() +}); +var FixedAmountPendingInvoiceSchema = BaseInvoiceSchema.extend({ + amountSats: import_zod2.z.number(), + fiatAmount: import_zod2.z.number(), + btcPrice: import_zod2.z.number() +}); +var DynamicAmountPendingInvoiceSchema = BaseInvoiceSchema; +var PaidInvoiceSchema = FixedAmountPendingInvoiceSchema.extend({ + amountSatsReceived: import_zod2.z.number() +}); +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + BaseInvoiceSchema, + DynamicAmountPendingInvoiceSchema, + FixedAmountPendingInvoiceSchema, + PaidInvoiceSchema +}); diff --git a/dist/schemas/invoice.d.cts b/dist/schemas/invoice.d.cts new file mode 100644 index 0000000..ddd7f30 --- /dev/null +++ b/dist/schemas/invoice.d.cts @@ -0,0 +1,118 @@ +import { z } from 'zod'; + +declare const BaseInvoiceSchema: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; +}, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; +}, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; +}>; +declare const FixedAmountPendingInvoiceSchema: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; +} & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; +}, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; +}>; +declare const DynamicAmountPendingInvoiceSchema: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; +}, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; +}, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; +}>; +declare const PaidInvoiceSchema: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + amountSatsReceived: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; +}, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; +}>; + +export { BaseInvoiceSchema, DynamicAmountPendingInvoiceSchema, FixedAmountPendingInvoiceSchema, PaidInvoiceSchema }; diff --git a/dist/schemas/invoice.d.ts b/dist/schemas/invoice.d.ts new file mode 100644 index 0000000..ddd7f30 --- /dev/null +++ b/dist/schemas/invoice.d.ts @@ -0,0 +1,118 @@ +import { z } from 'zod'; + +declare const BaseInvoiceSchema: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; +}, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; +}, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; +}>; +declare const FixedAmountPendingInvoiceSchema: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; +} & { + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; +}, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number | null; + fiatAmount: number; +}>; +declare const DynamicAmountPendingInvoiceSchema: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + amountSats: z.ZodNullable; + amountSatsReceived: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + fiatAmount: z.ZodNullable; + btcPrice: z.ZodNullable; +}, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; +}, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number | null; + expiresAt: Date; + btcPrice: number | null; + amountSatsReceived: number | null; + fiatAmount: number | null; +}>; +declare const PaidInvoiceSchema: z.ZodObject<{ + invoice: z.ZodString; + expiresAt: z.ZodDate; + paymentHash: z.ZodString; + currency: z.ZodEnum<["USD", "SAT"]>; + amountSats: z.ZodNumber; + fiatAmount: z.ZodNumber; + btcPrice: z.ZodNumber; +} & { + amountSatsReceived: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; +}, { + currency: "USD" | "SAT"; + invoice: string; + paymentHash: string; + amountSats: number; + expiresAt: Date; + btcPrice: number; + amountSatsReceived: number; + fiatAmount: number; +}>; + +export { BaseInvoiceSchema, DynamicAmountPendingInvoiceSchema, FixedAmountPendingInvoiceSchema, PaidInvoiceSchema }; diff --git a/dist/schemas/invoice.js b/dist/schemas/invoice.js new file mode 100644 index 0000000..1f13055 --- /dev/null +++ b/dist/schemas/invoice.js @@ -0,0 +1,13 @@ +import { + BaseInvoiceSchema, + DynamicAmountPendingInvoiceSchema, + FixedAmountPendingInvoiceSchema, + PaidInvoiceSchema +} from "../chunk-TGG53ETU.js"; +import "../chunk-6M6LFZ3U.js"; +export { + BaseInvoiceSchema, + DynamicAmountPendingInvoiceSchema, + FixedAmountPendingInvoiceSchema, + PaidInvoiceSchema +}; diff --git a/dist/schemas/onboarding.cjs b/dist/schemas/onboarding.cjs new file mode 100644 index 0000000..5adf72b --- /dev/null +++ b/dist/schemas/onboarding.cjs @@ -0,0 +1,87 @@ +"use strict"; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/schemas/onboarding.ts +var onboarding_exports = {}; +__export(onboarding_exports, { + BootstrapInputSchema: () => BootstrapInputSchema, + BootstrapOutputSchema: () => BootstrapOutputSchema, + PollDeviceAuthInputSchema: () => PollDeviceAuthInputSchema, + PollDeviceAuthOutputSchema: () => PollDeviceAuthOutputSchema, + StartDeviceAuthInputSchema: () => StartDeviceAuthInputSchema, + StartDeviceAuthOutputSchema: () => StartDeviceAuthOutputSchema +}); +module.exports = __toCommonJS(onboarding_exports); +var import_zod = require("zod"); +var StartDeviceAuthInputSchema = import_zod.z.object({ + clientDisplayName: import_zod.z.string().optional(), + webhookUrl: import_zod.z.string().url().optional(), + forceNewWebhook: import_zod.z.boolean().optional() +}); +var StartDeviceAuthOutputSchema = import_zod.z.object({ + deviceCode: import_zod.z.string(), + userCode: import_zod.z.string(), + verificationUri: import_zod.z.string().url(), + expiresIn: import_zod.z.number().int().positive(), + interval: import_zod.z.number().int().positive() +}); +var PollDeviceAuthInputSchema = import_zod.z.object({ + deviceCode: import_zod.z.string() +}); +var PollDeviceAuthOutputSchema = import_zod.z.discriminatedUnion("status", [ + import_zod.z.object({ + status: import_zod.z.literal("pending"), + expiresIn: import_zod.z.number().int().nonnegative() + }), + import_zod.z.object({ + status: import_zod.z.literal("authorized"), + bootstrapToken: import_zod.z.string(), + expiresIn: import_zod.z.number().int().nonnegative().optional() + }), + import_zod.z.object({ + status: import_zod.z.literal("expired") + }), + import_zod.z.object({ + status: import_zod.z.literal("denied") + }) +]); +var BootstrapInputSchema = import_zod.z.object({ + bootstrapToken: import_zod.z.string(), + webhookUrl: import_zod.z.string().url().optional(), + projectName: import_zod.z.string().optional(), + forceNewWebhook: import_zod.z.boolean().optional() +}); +var BootstrapOutputSchema = import_zod.z.object({ + apiKey: import_zod.z.string(), + apiKeyPreview: import_zod.z.string(), + apiKeyId: import_zod.z.string(), + webhookId: import_zod.z.string(), + webhookSecret: import_zod.z.string(), + organizationId: import_zod.z.string(), + webhookUrl: import_zod.z.string().url() +}); +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + BootstrapInputSchema, + BootstrapOutputSchema, + PollDeviceAuthInputSchema, + PollDeviceAuthOutputSchema, + StartDeviceAuthInputSchema, + StartDeviceAuthOutputSchema +}); diff --git a/dist/schemas/onboarding.d.cts b/dist/schemas/onboarding.d.cts new file mode 100644 index 0000000..463b998 --- /dev/null +++ b/dist/schemas/onboarding.d.cts @@ -0,0 +1,118 @@ +import { z } from 'zod'; + +declare const StartDeviceAuthInputSchema: z.ZodObject<{ + clientDisplayName: z.ZodOptional; + webhookUrl: z.ZodOptional; + forceNewWebhook: z.ZodOptional; +}, "strip", z.ZodTypeAny, { + clientDisplayName?: string | undefined; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; +}, { + clientDisplayName?: string | undefined; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; +}>; +declare const StartDeviceAuthOutputSchema: z.ZodObject<{ + deviceCode: z.ZodString; + userCode: z.ZodString; + verificationUri: z.ZodString; + expiresIn: z.ZodNumber; + interval: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + deviceCode: string; + userCode: string; + verificationUri: string; + expiresIn: number; + interval: number; +}, { + deviceCode: string; + userCode: string; + verificationUri: string; + expiresIn: number; + interval: number; +}>; +declare const PollDeviceAuthInputSchema: z.ZodObject<{ + deviceCode: z.ZodString; +}, "strip", z.ZodTypeAny, { + deviceCode: string; +}, { + deviceCode: string; +}>; +declare const PollDeviceAuthOutputSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ + status: z.ZodLiteral<"pending">; + expiresIn: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "pending"; + expiresIn: number; +}, { + status: "pending"; + expiresIn: number; +}>, z.ZodObject<{ + status: z.ZodLiteral<"authorized">; + bootstrapToken: z.ZodString; + expiresIn: z.ZodOptional; +}, "strip", z.ZodTypeAny, { + status: "authorized"; + bootstrapToken: string; + expiresIn?: number | undefined; +}, { + status: "authorized"; + bootstrapToken: string; + expiresIn?: number | undefined; +}>, z.ZodObject<{ + status: z.ZodLiteral<"expired">; +}, "strip", z.ZodTypeAny, { + status: "expired"; +}, { + status: "expired"; +}>, z.ZodObject<{ + status: z.ZodLiteral<"denied">; +}, "strip", z.ZodTypeAny, { + status: "denied"; +}, { + status: "denied"; +}>]>; +declare const BootstrapInputSchema: z.ZodObject<{ + bootstrapToken: z.ZodString; + webhookUrl: z.ZodOptional; + projectName: z.ZodOptional; + forceNewWebhook: z.ZodOptional; +}, "strip", z.ZodTypeAny, { + bootstrapToken: string; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + projectName?: string | undefined; +}, { + bootstrapToken: string; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + projectName?: string | undefined; +}>; +declare const BootstrapOutputSchema: z.ZodObject<{ + apiKey: z.ZodString; + apiKeyPreview: z.ZodString; + apiKeyId: z.ZodString; + webhookId: z.ZodString; + webhookSecret: z.ZodString; + organizationId: z.ZodString; + webhookUrl: z.ZodString; +}, "strip", z.ZodTypeAny, { + organizationId: string; + webhookUrl: string; + apiKey: string; + apiKeyPreview: string; + apiKeyId: string; + webhookId: string; + webhookSecret: string; +}, { + organizationId: string; + webhookUrl: string; + apiKey: string; + apiKeyPreview: string; + apiKeyId: string; + webhookId: string; + webhookSecret: string; +}>; + +export { BootstrapInputSchema, BootstrapOutputSchema, PollDeviceAuthInputSchema, PollDeviceAuthOutputSchema, StartDeviceAuthInputSchema, StartDeviceAuthOutputSchema }; diff --git a/dist/schemas/onboarding.d.ts b/dist/schemas/onboarding.d.ts new file mode 100644 index 0000000..463b998 --- /dev/null +++ b/dist/schemas/onboarding.d.ts @@ -0,0 +1,118 @@ +import { z } from 'zod'; + +declare const StartDeviceAuthInputSchema: z.ZodObject<{ + clientDisplayName: z.ZodOptional; + webhookUrl: z.ZodOptional; + forceNewWebhook: z.ZodOptional; +}, "strip", z.ZodTypeAny, { + clientDisplayName?: string | undefined; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; +}, { + clientDisplayName?: string | undefined; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; +}>; +declare const StartDeviceAuthOutputSchema: z.ZodObject<{ + deviceCode: z.ZodString; + userCode: z.ZodString; + verificationUri: z.ZodString; + expiresIn: z.ZodNumber; + interval: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + deviceCode: string; + userCode: string; + verificationUri: string; + expiresIn: number; + interval: number; +}, { + deviceCode: string; + userCode: string; + verificationUri: string; + expiresIn: number; + interval: number; +}>; +declare const PollDeviceAuthInputSchema: z.ZodObject<{ + deviceCode: z.ZodString; +}, "strip", z.ZodTypeAny, { + deviceCode: string; +}, { + deviceCode: string; +}>; +declare const PollDeviceAuthOutputSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ + status: z.ZodLiteral<"pending">; + expiresIn: z.ZodNumber; +}, "strip", z.ZodTypeAny, { + status: "pending"; + expiresIn: number; +}, { + status: "pending"; + expiresIn: number; +}>, z.ZodObject<{ + status: z.ZodLiteral<"authorized">; + bootstrapToken: z.ZodString; + expiresIn: z.ZodOptional; +}, "strip", z.ZodTypeAny, { + status: "authorized"; + bootstrapToken: string; + expiresIn?: number | undefined; +}, { + status: "authorized"; + bootstrapToken: string; + expiresIn?: number | undefined; +}>, z.ZodObject<{ + status: z.ZodLiteral<"expired">; +}, "strip", z.ZodTypeAny, { + status: "expired"; +}, { + status: "expired"; +}>, z.ZodObject<{ + status: z.ZodLiteral<"denied">; +}, "strip", z.ZodTypeAny, { + status: "denied"; +}, { + status: "denied"; +}>]>; +declare const BootstrapInputSchema: z.ZodObject<{ + bootstrapToken: z.ZodString; + webhookUrl: z.ZodOptional; + projectName: z.ZodOptional; + forceNewWebhook: z.ZodOptional; +}, "strip", z.ZodTypeAny, { + bootstrapToken: string; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + projectName?: string | undefined; +}, { + bootstrapToken: string; + webhookUrl?: string | undefined; + forceNewWebhook?: boolean | undefined; + projectName?: string | undefined; +}>; +declare const BootstrapOutputSchema: z.ZodObject<{ + apiKey: z.ZodString; + apiKeyPreview: z.ZodString; + apiKeyId: z.ZodString; + webhookId: z.ZodString; + webhookSecret: z.ZodString; + organizationId: z.ZodString; + webhookUrl: z.ZodString; +}, "strip", z.ZodTypeAny, { + organizationId: string; + webhookUrl: string; + apiKey: string; + apiKeyPreview: string; + apiKeyId: string; + webhookId: string; + webhookSecret: string; +}, { + organizationId: string; + webhookUrl: string; + apiKey: string; + apiKeyPreview: string; + apiKeyId: string; + webhookId: string; + webhookSecret: string; +}>; + +export { BootstrapInputSchema, BootstrapOutputSchema, PollDeviceAuthInputSchema, PollDeviceAuthOutputSchema, StartDeviceAuthInputSchema, StartDeviceAuthOutputSchema }; diff --git a/dist/schemas/onboarding.js b/dist/schemas/onboarding.js new file mode 100644 index 0000000..b985f4a --- /dev/null +++ b/dist/schemas/onboarding.js @@ -0,0 +1,16 @@ +import { + BootstrapInputSchema, + BootstrapOutputSchema, + PollDeviceAuthInputSchema, + PollDeviceAuthOutputSchema, + StartDeviceAuthInputSchema, + StartDeviceAuthOutputSchema +} from "../chunk-WJ6HHWDE.js"; +export { + BootstrapInputSchema, + BootstrapOutputSchema, + PollDeviceAuthInputSchema, + PollDeviceAuthOutputSchema, + StartDeviceAuthInputSchema, + StartDeviceAuthOutputSchema +}; diff --git a/dist/schemas/product.cjs b/dist/schemas/product.cjs new file mode 100644 index 0000000..3c3a8d0 --- /dev/null +++ b/dist/schemas/product.cjs @@ -0,0 +1,51 @@ +"use strict"; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/schemas/product.ts +var product_exports = {}; +__export(product_exports, { + CheckoutProductPriceSchema: () => CheckoutProductPriceSchema, + CheckoutProductSchema: () => CheckoutProductSchema +}); +module.exports = __toCommonJS(product_exports); +var import_zod2 = require("zod"); + +// src/schemas/currency.ts +var import_zod = require("zod"); +var CurrencySchema = import_zod.z.enum(["USD", "SAT"]); + +// src/schemas/product.ts +var CheckoutProductPriceSchema = import_zod2.z.object({ + id: import_zod2.z.string(), + amountType: import_zod2.z.enum(["FIXED", "CUSTOM", "FREE"]), + priceAmount: import_zod2.z.number().nullable(), + currency: CurrencySchema +}); +var CheckoutProductSchema = import_zod2.z.object({ + id: import_zod2.z.string(), + name: import_zod2.z.string(), + description: import_zod2.z.string().nullable(), + recurringInterval: import_zod2.z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(), + prices: import_zod2.z.array(CheckoutProductPriceSchema) +}); +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + CheckoutProductPriceSchema, + CheckoutProductSchema +}); diff --git a/dist/schemas/product.d.cts b/dist/schemas/product.d.cts new file mode 100644 index 0000000..719f907 --- /dev/null +++ b/dist/schemas/product.d.cts @@ -0,0 +1,64 @@ +import { z } from 'zod'; + +declare const CheckoutProductPriceSchema: z.ZodObject<{ + id: z.ZodString; + amountType: z.ZodEnum<["FIXED", "CUSTOM", "FREE"]>; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; +}, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; +}, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; +}>; +declare const CheckoutProductSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + description: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; +}, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; +}, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; +}>; + +export { CheckoutProductPriceSchema, CheckoutProductSchema }; diff --git a/dist/schemas/product.d.ts b/dist/schemas/product.d.ts new file mode 100644 index 0000000..719f907 --- /dev/null +++ b/dist/schemas/product.d.ts @@ -0,0 +1,64 @@ +import { z } from 'zod'; + +declare const CheckoutProductPriceSchema: z.ZodObject<{ + id: z.ZodString; + amountType: z.ZodEnum<["FIXED", "CUSTOM", "FREE"]>; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; +}, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; +}, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; +}>; +declare const CheckoutProductSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + description: z.ZodNullable; + recurringInterval: z.ZodNullable>; + prices: z.ZodArray; + priceAmount: z.ZodNullable; + currency: z.ZodEnum<["USD", "SAT"]>; + }, "strip", z.ZodTypeAny, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }, { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }>, "many">; +}, "strip", z.ZodTypeAny, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; +}, { + name: string; + id: string; + description: string | null; + recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; + prices: { + currency: "USD" | "SAT"; + priceAmount: number | null; + id: string; + amountType: "FIXED" | "CUSTOM" | "FREE"; + }[]; +}>; + +export { CheckoutProductPriceSchema, CheckoutProductSchema }; diff --git a/dist/schemas/product.js b/dist/schemas/product.js new file mode 100644 index 0000000..9b22ce1 --- /dev/null +++ b/dist/schemas/product.js @@ -0,0 +1,9 @@ +import { + CheckoutProductPriceSchema, + CheckoutProductSchema +} from "../chunk-CD4U22RQ.js"; +import "../chunk-6M6LFZ3U.js"; +export { + CheckoutProductPriceSchema, + CheckoutProductSchema +}; diff --git a/dist/validation/metadata-validation.cjs b/dist/validation/metadata-validation.cjs new file mode 100644 index 0000000..d8b999b --- /dev/null +++ b/dist/validation/metadata-validation.cjs @@ -0,0 +1,154 @@ +"use strict"; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/validation/metadata-validation.ts +var metadata_validation_exports = {}; +__export(metadata_validation_exports, { + MAX_KEY_COUNT: () => MAX_KEY_COUNT, + MAX_KEY_LENGTH: () => MAX_KEY_LENGTH, + MAX_METADATA_SIZE_BYTES: () => MAX_METADATA_SIZE_BYTES, + validateMetadata: () => validateMetadata +}); +module.exports = __toCommonJS(metadata_validation_exports); + +// src/lib/utils.ts +function ok(value) { + return { ok: true, value }; +} +function err(error) { + return { ok: false, error }; +} + +// src/validation/metadata-validation.ts +var MAX_METADATA_SIZE_BYTES = 1024; +var MAX_KEY_LENGTH = 100; +var MAX_KEY_COUNT = 50; +var CONTROL_CHAR_PATTERN = /[\x00-\x08\x0B-\x0C\x0E-\x1F]/; +var VALID_KEY_PATTERN = /^[a-zA-Z0-9_-]+$/; +function validateKeyFormat(key) { + if (!VALID_KEY_PATTERN.test(key)) { + const message = key === "" ? "Metadata keys cannot be empty" : `Metadata key "${key}" contains invalid characters. Keys must contain only letters, numbers, underscores, and hyphens.`; + return err({ type: "invalid_key_format", message }); + } + return ok(void 0); +} +function validateKeyLength(key) { + if (key.length > MAX_KEY_LENGTH) { + return err({ + type: "key_too_long", + message: `Metadata key "${key}" exceeds maximum length of ${MAX_KEY_LENGTH} characters` + }); + } + return ok(void 0); +} +function validateNullBytes(key, value) { + if (value.includes("\0")) { + return err({ + type: "control_character", + message: `Metadata value for key "${key}" cannot contain null bytes` + }); + } + return ok(void 0); +} +function validateControlCharacters(key, value) { + if (CONTROL_CHAR_PATTERN.test(value)) { + return err({ + type: "control_character", + message: `Metadata value for key "${key}" cannot contain control characters` + }); + } + return ok(void 0); +} +function validateUtf8Encoding(key, value) { + try { + const encoded = new TextEncoder().encode(value); + new TextDecoder("utf-8", { fatal: true }).decode(encoded); + } catch { + return err({ + type: "invalid_encoding", + message: `Metadata value for key "${key}" contains invalid UTF-8 encoding` + }); + } + return ok(void 0); +} +function validateMetadataSize(metadata) { + const serialized = JSON.stringify(metadata); + const sizeBytes = new TextEncoder().encode(serialized).length; + if (sizeBytes > MAX_METADATA_SIZE_BYTES) { + return err({ + type: "size_exceeded", + message: `Metadata size (${sizeBytes} bytes) exceeds maximum allowed size (${MAX_METADATA_SIZE_BYTES} bytes). To fix this, reduce the size of your metadata values or remove unnecessary fields.` + }); + } + return ok(void 0); +} +function validateKey(key) { + const formatCheck = validateKeyFormat(key); + if (!formatCheck.ok) return formatCheck; + const lengthCheck = validateKeyLength(key); + if (!lengthCheck.ok) return lengthCheck; + return ok(void 0); +} +function validateValue(key, value) { + const nullByteCheck = validateNullBytes(key, value); + if (!nullByteCheck.ok) return nullByteCheck; + const controlCharCheck = validateControlCharacters(key, value); + if (!controlCharCheck.ok) return controlCharCheck; + const encodingCheck = validateUtf8Encoding(key, value); + if (!encodingCheck.ok) return encodingCheck; + return ok(void 0); +} +function validateMetadata(metadata) { + if (!metadata) { + return ok(void 0); + } + const errors = []; + const keyCount = Object.keys(metadata).length; + if (keyCount > MAX_KEY_COUNT) { + errors.push({ + type: "key_count_exceeded", + message: `Metadata contains ${keyCount} keys, which exceeds the maximum of ${MAX_KEY_COUNT} keys` + }); + } + for (const [key, value] of Object.entries(metadata)) { + const keyCheck = validateKey(key); + if (!keyCheck.ok) { + errors.push(keyCheck.error); + } + const valueCheck = validateValue(key, value); + if (!valueCheck.ok) { + errors.push(valueCheck.error); + } + } + const sizeCheck = validateMetadataSize(metadata); + if (!sizeCheck.ok) { + errors.push(sizeCheck.error); + } + if (errors.length > 0) { + return err(errors); + } + return ok(void 0); +} +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + MAX_KEY_COUNT, + MAX_KEY_LENGTH, + MAX_METADATA_SIZE_BYTES, + validateMetadata +}); diff --git a/dist/validation/metadata-validation.d.cts b/dist/validation/metadata-validation.d.cts new file mode 100644 index 0000000..6d595e8 --- /dev/null +++ b/dist/validation/metadata-validation.d.cts @@ -0,0 +1,19 @@ +import { Result } from '../lib/utils.cjs'; + +declare const MAX_METADATA_SIZE_BYTES = 1024; +declare const MAX_KEY_LENGTH = 100; +declare const MAX_KEY_COUNT = 50; +type MetadataValidationError = { + type: string; + message: string; +}; +/** + * Validates checkout metadata against all security constraints. + * Returns all validation errors found, allowing users to fix multiple issues at once. + * + * @param metadata - The metadata object to validate, or undefined + * @returns A Result containing either success (ok: true) or an array of validation errors (ok: false) + */ +declare function validateMetadata(metadata: Record | undefined): Result; + +export { MAX_KEY_COUNT, MAX_KEY_LENGTH, MAX_METADATA_SIZE_BYTES, type MetadataValidationError, validateMetadata }; diff --git a/dist/validation/metadata-validation.d.ts b/dist/validation/metadata-validation.d.ts new file mode 100644 index 0000000..a17430a --- /dev/null +++ b/dist/validation/metadata-validation.d.ts @@ -0,0 +1,19 @@ +import { Result } from '../lib/utils.js'; + +declare const MAX_METADATA_SIZE_BYTES = 1024; +declare const MAX_KEY_LENGTH = 100; +declare const MAX_KEY_COUNT = 50; +type MetadataValidationError = { + type: string; + message: string; +}; +/** + * Validates checkout metadata against all security constraints. + * Returns all validation errors found, allowing users to fix multiple issues at once. + * + * @param metadata - The metadata object to validate, or undefined + * @returns A Result containing either success (ok: true) or an array of validation errors (ok: false) + */ +declare function validateMetadata(metadata: Record | undefined): Result; + +export { MAX_KEY_COUNT, MAX_KEY_LENGTH, MAX_METADATA_SIZE_BYTES, type MetadataValidationError, validateMetadata }; diff --git a/dist/validation/metadata-validation.js b/dist/validation/metadata-validation.js new file mode 100644 index 0000000..77173d8 --- /dev/null +++ b/dist/validation/metadata-validation.js @@ -0,0 +1,13 @@ +import { + MAX_KEY_COUNT, + MAX_KEY_LENGTH, + MAX_METADATA_SIZE_BYTES, + validateMetadata +} from "../chunk-DVDEDUJU.js"; +import "../chunk-OJKHC5SH.js"; +export { + MAX_KEY_COUNT, + MAX_KEY_LENGTH, + MAX_METADATA_SIZE_BYTES, + validateMetadata +}; From d7af0c2bc3208be5d19dd942cbe11ca009d1caee Mon Sep 17 00:00:00 2001 From: Nat Elkins Date: Mon, 19 Jan 2026 15:27:14 -0500 Subject: [PATCH 5/8] chore: remove prepare script since dist is committed --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index dc4d644..adc15b8 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,6 @@ }, "scripts": { "build": "tsup", - "prepare": "npm run build", "test": "vitest", "check": "biome check ./src --fix" }, From 1d6462e0a85e0034f8166df8bf4e228223ac941f Mon Sep 17 00:00:00 2001 From: Nat Elkins Date: Mon, 19 Jan 2026 20:59:55 -0500 Subject: [PATCH 6/8] fix: remove FREE price type support Remove FREE as a valid amountType for product prices. Free products are not currently supported as they would require skipping the Lightning payment flow entirely. CUSTOM prices now require amount > 0 to prevent zero-amount checkouts. --- src/contracts/products.ts | 4 ++-- src/schemas/product.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/contracts/products.ts b/src/contracts/products.ts index c293838..faba3ea 100644 --- a/src/contracts/products.ts +++ b/src/contracts/products.ts @@ -4,14 +4,14 @@ import { CurrencySchema } from "../schemas/currency"; export const ProductPriceSchema = z.object({ id: z.string(), - amountType: z.enum(["FIXED", "CUSTOM", "FREE"]), + amountType: z.enum(["FIXED", "CUSTOM"]), priceAmount: z.number().nullable(), currency: CurrencySchema, }); // Products have a prices array to allow future support of metered pricing // (e.g., base subscription + usage-based charges). Currently only one static price -// (FIXED/CUSTOM/FREE) is supported. +// (FIXED/CUSTOM) is supported. export const ProductSchema = z.object({ id: z.string(), name: z.string(), diff --git a/src/schemas/product.ts b/src/schemas/product.ts index 9e69f1f..c64c201 100644 --- a/src/schemas/product.ts +++ b/src/schemas/product.ts @@ -3,14 +3,14 @@ import { CurrencySchema } from "./currency"; export const CheckoutProductPriceSchema = z.object({ id: z.string(), - amountType: z.enum(["FIXED", "CUSTOM", "FREE"]), + amountType: z.enum(["FIXED", "CUSTOM"]), priceAmount: z.number().nullable(), currency: CurrencySchema, }); // Checkout products have a prices array to allow future support of metered pricing // (e.g., base subscription + usage-based charges). Currently only one static price -// (FIXED/CUSTOM/FREE) is supported. +// (FIXED/CUSTOM) is supported. export const CheckoutProductSchema = z.object({ id: z.string(), name: z.string(), From 5f61d6e6f4c180085a43565211588926ef362fed Mon Sep 17 00:00:00 2001 From: Nat Elkins Date: Mon, 19 Jan 2026 21:49:01 -0500 Subject: [PATCH 7/8] test: update tests for FREE/METERED removal FREE and METERED price types are no longer supported. Update tests to expect rejection of these types. --- dist/contracts/checkout.cjs | 2 +- dist/contracts/checkout.d.cts | 3420 ++++++++++++++++----------------- dist/contracts/checkout.d.ts | 3420 ++++++++++++++++----------------- dist/contracts/checkout.js | 6 +- dist/contracts/products.cjs | 2 +- dist/contracts/products.d.cts | 58 +- dist/contracts/products.d.ts | 58 +- dist/contracts/products.js | 2 +- dist/index.cjs | 4 +- dist/index.d.cts | 1534 +++++++-------- dist/index.d.ts | 1534 +++++++-------- dist/index.js | 20 +- dist/schemas/checkout.cjs | 2 +- dist/schemas/checkout.d.cts | 760 ++++---- dist/schemas/checkout.d.ts | 760 ++++---- dist/schemas/checkout.js | 4 +- dist/schemas/product.cjs | 2 +- dist/schemas/product.d.cts | 16 +- dist/schemas/product.d.ts | 16 +- dist/schemas/product.js | 2 +- tests/schemas/product.test.ts | 18 +- 21 files changed, 5814 insertions(+), 5826 deletions(-) diff --git a/dist/contracts/checkout.cjs b/dist/contracts/checkout.cjs index 0fba1a3..b466fb7 100644 --- a/dist/contracts/checkout.cjs +++ b/dist/contracts/checkout.cjs @@ -73,7 +73,7 @@ var PaidInvoiceSchema = FixedAmountPendingInvoiceSchema.extend({ var import_zod3 = require("zod"); var CheckoutProductPriceSchema = import_zod3.z.object({ id: import_zod3.z.string(), - amountType: import_zod3.z.enum(["FIXED", "CUSTOM", "FREE"]), + amountType: import_zod3.z.enum(["FIXED", "CUSTOM"]), priceAmount: import_zod3.z.number().nullable(), currency: CurrencySchema }); diff --git a/dist/contracts/checkout.d.cts b/dist/contracts/checkout.d.cts index 33a0bc9..b311cb6 100644 --- a/dist/contracts/checkout.d.cts +++ b/dist/contracts/checkout.d.cts @@ -317,19 +317,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -340,7 +340,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -351,7 +351,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -400,19 +400,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -423,7 +423,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -434,7 +434,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -450,7 +450,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -461,7 +461,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -502,7 +502,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -526,7 +526,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -537,7 +537,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -578,7 +578,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -622,19 +622,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -645,7 +645,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -656,7 +656,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -669,19 +669,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -692,7 +692,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -703,7 +703,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -758,7 +758,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -799,7 +799,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -823,7 +823,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -864,7 +864,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -908,19 +908,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -931,7 +931,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -942,7 +942,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -955,19 +955,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -978,7 +978,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -989,7 +989,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -1044,7 +1044,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1085,7 +1085,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1109,7 +1109,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1150,7 +1150,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1197,19 +1197,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1220,7 +1220,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1231,7 +1231,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -1280,19 +1280,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1303,7 +1303,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1314,7 +1314,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -1330,7 +1330,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -1341,7 +1341,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -1382,7 +1382,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1406,7 +1406,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -1417,7 +1417,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -1458,7 +1458,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1502,19 +1502,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1525,7 +1525,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1536,7 +1536,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -1549,19 +1549,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1572,7 +1572,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1583,7 +1583,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -1638,7 +1638,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1679,7 +1679,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -1703,7 +1703,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1744,7 +1744,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -1788,19 +1788,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1811,7 +1811,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1822,7 +1822,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -1835,19 +1835,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1858,7 +1858,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1869,7 +1869,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -1924,7 +1924,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1965,7 +1965,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1989,7 +1989,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2030,7 +2030,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2077,19 +2077,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2100,7 +2100,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2111,7 +2111,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -2132,19 +2132,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2155,7 +2155,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2166,7 +2166,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -2211,7 +2211,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -2222,7 +2222,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -2263,7 +2263,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2287,7 +2287,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -2298,7 +2298,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -2339,7 +2339,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2383,19 +2383,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2406,7 +2406,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2417,7 +2417,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -2430,19 +2430,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2453,7 +2453,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2464,7 +2464,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -2520,7 +2520,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2561,7 +2561,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -2585,7 +2585,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2626,7 +2626,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -2670,19 +2670,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2693,7 +2693,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2704,7 +2704,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -2717,19 +2717,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2740,7 +2740,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2751,7 +2751,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -2806,7 +2806,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2847,7 +2847,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2871,7 +2871,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2912,7 +2912,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2959,19 +2959,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2982,7 +2982,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2993,7 +2993,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -3014,19 +3014,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3037,7 +3037,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3048,7 +3048,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -3093,7 +3093,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -3104,7 +3104,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -3145,7 +3145,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3169,7 +3169,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -3180,7 +3180,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -3221,7 +3221,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3265,19 +3265,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3288,7 +3288,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3299,7 +3299,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -3312,19 +3312,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3335,7 +3335,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3346,7 +3346,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -3402,7 +3402,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3443,7 +3443,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -3467,7 +3467,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3508,7 +3508,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -3552,19 +3552,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3575,7 +3575,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3586,7 +3586,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -3599,19 +3599,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3622,7 +3622,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3633,7 +3633,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -3689,7 +3689,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3730,7 +3730,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3754,7 +3754,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3795,7 +3795,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3839,19 +3839,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3862,7 +3862,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3873,7 +3873,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -3886,19 +3886,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3909,7 +3909,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3920,7 +3920,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -3975,7 +3975,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4016,7 +4016,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4040,7 +4040,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4081,7 +4081,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4138,19 +4138,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4161,7 +4161,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4172,7 +4172,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -4221,19 +4221,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4244,7 +4244,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4255,7 +4255,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -4271,7 +4271,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -4282,7 +4282,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4323,7 +4323,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4347,7 +4347,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -4358,7 +4358,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4399,7 +4399,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4443,19 +4443,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4466,7 +4466,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4477,7 +4477,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -4490,19 +4490,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4513,7 +4513,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4524,7 +4524,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -4579,7 +4579,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4620,7 +4620,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -4644,7 +4644,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4685,7 +4685,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -4729,19 +4729,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4752,7 +4752,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4763,7 +4763,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -4776,19 +4776,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4799,7 +4799,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4810,7 +4810,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -4865,7 +4865,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4906,7 +4906,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4930,7 +4930,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4971,7 +4971,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5018,19 +5018,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5041,7 +5041,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5052,7 +5052,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -5101,19 +5101,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5124,7 +5124,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5135,7 +5135,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -5151,7 +5151,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -5162,7 +5162,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -5203,7 +5203,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5227,7 +5227,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -5238,7 +5238,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -5279,7 +5279,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5323,19 +5323,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5346,7 +5346,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5357,7 +5357,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -5370,19 +5370,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5393,7 +5393,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5404,7 +5404,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -5459,7 +5459,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5500,7 +5500,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -5524,7 +5524,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5565,7 +5565,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -5609,19 +5609,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5632,7 +5632,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5643,7 +5643,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -5656,19 +5656,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5679,7 +5679,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5690,7 +5690,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -5745,7 +5745,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5786,7 +5786,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5810,7 +5810,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5851,7 +5851,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5898,19 +5898,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5921,7 +5921,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5932,7 +5932,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -5953,19 +5953,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5976,7 +5976,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5987,7 +5987,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -6032,7 +6032,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -6043,7 +6043,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -6084,7 +6084,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6108,7 +6108,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -6119,7 +6119,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -6160,7 +6160,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6204,19 +6204,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6227,7 +6227,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6238,7 +6238,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -6251,19 +6251,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6274,7 +6274,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6285,7 +6285,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -6341,7 +6341,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6382,7 +6382,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -6406,7 +6406,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6447,7 +6447,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -6491,19 +6491,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6514,7 +6514,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6525,7 +6525,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -6538,19 +6538,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6561,7 +6561,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6572,7 +6572,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -6627,7 +6627,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6668,7 +6668,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6692,7 +6692,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6733,7 +6733,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6780,19 +6780,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6803,7 +6803,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6814,7 +6814,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -6835,19 +6835,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6858,7 +6858,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6869,7 +6869,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -6914,7 +6914,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -6925,7 +6925,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -6966,7 +6966,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6990,7 +6990,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -7001,7 +7001,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -7042,7 +7042,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7086,19 +7086,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7109,7 +7109,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7120,7 +7120,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -7133,19 +7133,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7156,7 +7156,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7167,7 +7167,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -7223,7 +7223,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7264,7 +7264,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -7288,7 +7288,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7329,7 +7329,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -7373,19 +7373,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7396,7 +7396,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7407,7 +7407,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -7420,19 +7420,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7443,7 +7443,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7454,7 +7454,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -7510,7 +7510,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7551,7 +7551,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7575,7 +7575,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7616,7 +7616,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7660,19 +7660,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7683,7 +7683,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7694,7 +7694,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -7707,19 +7707,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7730,7 +7730,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7741,7 +7741,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -7796,7 +7796,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7837,7 +7837,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7861,7 +7861,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7902,7 +7902,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8008,19 +8008,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -8031,7 +8031,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8042,7 +8042,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -8091,19 +8091,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -8114,7 +8114,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8125,7 +8125,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -8141,7 +8141,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -8152,7 +8152,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -8193,7 +8193,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8217,7 +8217,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -8228,7 +8228,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -8269,7 +8269,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8313,19 +8313,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -8336,7 +8336,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8347,7 +8347,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -8360,19 +8360,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -8383,7 +8383,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8394,7 +8394,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -8449,7 +8449,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -8490,7 +8490,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -8514,7 +8514,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -8555,7 +8555,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -8599,19 +8599,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -8622,7 +8622,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8633,7 +8633,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -8646,19 +8646,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -8669,7 +8669,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8680,7 +8680,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -8735,7 +8735,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -8776,7 +8776,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8800,7 +8800,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -8841,7 +8841,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8888,19 +8888,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -8911,7 +8911,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8922,7 +8922,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -8971,19 +8971,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -8994,7 +8994,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9005,7 +9005,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -9021,7 +9021,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -9032,7 +9032,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -9073,7 +9073,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9097,7 +9097,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -9108,7 +9108,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -9149,7 +9149,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9193,19 +9193,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -9216,7 +9216,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9227,7 +9227,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -9240,19 +9240,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -9263,7 +9263,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9274,7 +9274,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -9329,7 +9329,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -9370,7 +9370,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -9394,7 +9394,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -9435,7 +9435,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -9479,19 +9479,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -9502,7 +9502,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9513,7 +9513,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -9526,19 +9526,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -9549,7 +9549,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9560,7 +9560,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -9615,7 +9615,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -9656,7 +9656,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9680,7 +9680,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -9721,7 +9721,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9768,19 +9768,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -9791,7 +9791,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9802,7 +9802,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -9823,19 +9823,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -9846,7 +9846,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9857,7 +9857,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -9902,7 +9902,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -9913,7 +9913,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -9954,7 +9954,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9978,7 +9978,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -9989,7 +9989,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -10030,7 +10030,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10074,19 +10074,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -10097,7 +10097,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10108,7 +10108,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -10121,19 +10121,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -10144,7 +10144,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10155,7 +10155,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -10211,7 +10211,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10252,7 +10252,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -10276,7 +10276,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10317,7 +10317,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -10361,19 +10361,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -10384,7 +10384,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10395,7 +10395,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -10408,19 +10408,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -10431,7 +10431,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10442,7 +10442,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -10497,7 +10497,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10538,7 +10538,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10562,7 +10562,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10603,7 +10603,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10650,19 +10650,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -10673,7 +10673,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10684,7 +10684,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -10705,19 +10705,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -10728,7 +10728,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10739,7 +10739,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -10784,7 +10784,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -10795,7 +10795,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -10836,7 +10836,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10860,7 +10860,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -10871,7 +10871,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -10912,7 +10912,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10956,19 +10956,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -10979,7 +10979,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10990,7 +10990,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -11003,19 +11003,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -11026,7 +11026,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11037,7 +11037,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -11093,7 +11093,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11134,7 +11134,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -11158,7 +11158,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11199,7 +11199,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -11243,19 +11243,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -11266,7 +11266,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11277,7 +11277,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -11290,19 +11290,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -11313,7 +11313,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11324,7 +11324,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -11380,7 +11380,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11421,7 +11421,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11445,7 +11445,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11486,7 +11486,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11530,19 +11530,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -11553,7 +11553,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11564,7 +11564,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -11577,19 +11577,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -11600,7 +11600,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11611,7 +11611,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -11666,7 +11666,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11707,7 +11707,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11731,7 +11731,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11772,7 +11772,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11841,19 +11841,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -11864,7 +11864,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11875,7 +11875,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -11924,19 +11924,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -11947,7 +11947,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11958,7 +11958,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -11974,7 +11974,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -11985,7 +11985,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -12026,7 +12026,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12050,7 +12050,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -12061,7 +12061,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -12102,7 +12102,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12146,19 +12146,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -12169,7 +12169,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12180,7 +12180,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -12193,19 +12193,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -12216,7 +12216,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12227,7 +12227,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -12282,7 +12282,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12323,7 +12323,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -12347,7 +12347,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12388,7 +12388,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -12432,19 +12432,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -12455,7 +12455,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12466,7 +12466,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -12479,19 +12479,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -12502,7 +12502,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12513,7 +12513,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -12568,7 +12568,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12609,7 +12609,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12633,7 +12633,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12674,7 +12674,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12721,19 +12721,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -12744,7 +12744,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12755,7 +12755,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -12804,19 +12804,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -12827,7 +12827,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12838,7 +12838,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -12854,7 +12854,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -12865,7 +12865,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -12906,7 +12906,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12930,7 +12930,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -12941,7 +12941,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -12982,7 +12982,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13026,19 +13026,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -13049,7 +13049,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13060,7 +13060,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -13073,19 +13073,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -13096,7 +13096,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13107,7 +13107,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -13162,7 +13162,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13203,7 +13203,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -13227,7 +13227,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13268,7 +13268,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -13312,19 +13312,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -13335,7 +13335,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13346,7 +13346,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -13359,19 +13359,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -13382,7 +13382,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13393,7 +13393,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -13448,7 +13448,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13489,7 +13489,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13513,7 +13513,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13554,7 +13554,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13601,19 +13601,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -13624,7 +13624,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13635,7 +13635,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -13656,19 +13656,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -13679,7 +13679,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13690,7 +13690,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -13735,7 +13735,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -13746,7 +13746,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -13787,7 +13787,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13811,7 +13811,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -13822,7 +13822,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -13863,7 +13863,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13907,19 +13907,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -13930,7 +13930,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13941,7 +13941,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -13954,19 +13954,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -13977,7 +13977,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13988,7 +13988,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -14044,7 +14044,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14085,7 +14085,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -14109,7 +14109,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14150,7 +14150,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -14194,19 +14194,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -14217,7 +14217,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14228,7 +14228,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -14241,19 +14241,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -14264,7 +14264,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14275,7 +14275,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -14330,7 +14330,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14371,7 +14371,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -14395,7 +14395,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14436,7 +14436,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -14483,19 +14483,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -14506,7 +14506,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14517,7 +14517,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -14538,19 +14538,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -14561,7 +14561,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14572,7 +14572,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -14617,7 +14617,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -14628,7 +14628,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -14669,7 +14669,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -14693,7 +14693,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -14704,7 +14704,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -14745,7 +14745,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -14789,19 +14789,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -14812,7 +14812,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14823,7 +14823,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -14836,19 +14836,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -14859,7 +14859,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14870,7 +14870,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -14926,7 +14926,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14967,7 +14967,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -14991,7 +14991,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15032,7 +15032,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -15076,19 +15076,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -15099,7 +15099,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15110,7 +15110,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -15123,19 +15123,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -15146,7 +15146,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15157,7 +15157,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -15213,7 +15213,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15254,7 +15254,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15278,7 +15278,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15319,7 +15319,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15363,19 +15363,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -15386,7 +15386,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15397,7 +15397,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -15410,19 +15410,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -15433,7 +15433,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15444,7 +15444,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -15499,7 +15499,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15540,7 +15540,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15564,7 +15564,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15605,7 +15605,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15659,19 +15659,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -15682,7 +15682,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15693,7 +15693,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -15742,19 +15742,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -15765,7 +15765,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15776,7 +15776,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -15792,7 +15792,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -15803,7 +15803,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -15844,7 +15844,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15868,7 +15868,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -15879,7 +15879,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -15920,7 +15920,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15964,19 +15964,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -15987,7 +15987,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15998,7 +15998,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -16011,19 +16011,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -16034,7 +16034,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -16045,7 +16045,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -16100,7 +16100,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -16141,7 +16141,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -16165,7 +16165,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -16206,7 +16206,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -16250,19 +16250,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -16273,7 +16273,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -16284,7 +16284,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -16297,19 +16297,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -16320,7 +16320,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -16331,7 +16331,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -16386,7 +16386,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -16427,7 +16427,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -16451,7 +16451,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -16492,7 +16492,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -16539,19 +16539,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -16562,7 +16562,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -16573,7 +16573,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -16622,19 +16622,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -16645,7 +16645,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -16656,7 +16656,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -16672,7 +16672,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -16683,7 +16683,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -16724,7 +16724,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -16748,7 +16748,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -16759,7 +16759,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -16800,7 +16800,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -16844,19 +16844,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -16867,7 +16867,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -16878,7 +16878,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -16891,19 +16891,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -16914,7 +16914,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -16925,7 +16925,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -16980,7 +16980,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -17021,7 +17021,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -17045,7 +17045,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -17086,7 +17086,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -17130,19 +17130,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -17153,7 +17153,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -17164,7 +17164,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -17177,19 +17177,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -17200,7 +17200,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -17211,7 +17211,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -17266,7 +17266,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -17307,7 +17307,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -17331,7 +17331,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -17372,7 +17372,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -17419,19 +17419,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -17442,7 +17442,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -17453,7 +17453,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -17474,19 +17474,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -17497,7 +17497,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -17508,7 +17508,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -17553,7 +17553,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -17564,7 +17564,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -17605,7 +17605,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -17629,7 +17629,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -17640,7 +17640,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -17681,7 +17681,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -17725,19 +17725,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -17748,7 +17748,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -17759,7 +17759,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -17772,19 +17772,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -17795,7 +17795,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -17806,7 +17806,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -17862,7 +17862,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -17903,7 +17903,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -17927,7 +17927,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -17968,7 +17968,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -18012,19 +18012,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -18035,7 +18035,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -18046,7 +18046,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -18059,19 +18059,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -18082,7 +18082,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -18093,7 +18093,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -18148,7 +18148,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -18189,7 +18189,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -18213,7 +18213,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -18254,7 +18254,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -18301,19 +18301,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -18324,7 +18324,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -18335,7 +18335,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -18356,19 +18356,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -18379,7 +18379,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -18390,7 +18390,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -18435,7 +18435,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -18446,7 +18446,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -18487,7 +18487,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -18511,7 +18511,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -18522,7 +18522,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -18563,7 +18563,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -18607,19 +18607,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -18630,7 +18630,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -18641,7 +18641,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -18654,19 +18654,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -18677,7 +18677,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -18688,7 +18688,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -18744,7 +18744,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -18785,7 +18785,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -18809,7 +18809,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -18850,7 +18850,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -18894,19 +18894,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -18917,7 +18917,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -18928,7 +18928,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -18941,19 +18941,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -18964,7 +18964,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -18975,7 +18975,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -19031,7 +19031,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -19072,7 +19072,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -19096,7 +19096,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -19137,7 +19137,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -19181,19 +19181,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -19204,7 +19204,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -19215,7 +19215,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -19228,19 +19228,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -19251,7 +19251,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -19262,7 +19262,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -19317,7 +19317,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -19358,7 +19358,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -19382,7 +19382,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -19423,7 +19423,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -19511,19 +19511,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -19534,7 +19534,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -19545,7 +19545,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -19594,19 +19594,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -19617,7 +19617,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -19628,7 +19628,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -19644,7 +19644,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -19655,7 +19655,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -19696,7 +19696,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -19720,7 +19720,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -19731,7 +19731,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -19772,7 +19772,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -19816,19 +19816,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -19839,7 +19839,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -19850,7 +19850,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -19863,19 +19863,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -19886,7 +19886,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -19897,7 +19897,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -19952,7 +19952,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -19993,7 +19993,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -20017,7 +20017,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -20058,7 +20058,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -20102,19 +20102,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -20125,7 +20125,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -20136,7 +20136,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -20149,19 +20149,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -20172,7 +20172,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -20183,7 +20183,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -20238,7 +20238,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -20279,7 +20279,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -20303,7 +20303,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -20344,7 +20344,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -20391,19 +20391,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -20414,7 +20414,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -20425,7 +20425,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -20474,19 +20474,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -20497,7 +20497,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -20508,7 +20508,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -20524,7 +20524,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -20535,7 +20535,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -20576,7 +20576,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -20600,7 +20600,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -20611,7 +20611,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -20652,7 +20652,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -20696,19 +20696,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -20719,7 +20719,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -20730,7 +20730,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -20743,19 +20743,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -20766,7 +20766,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -20777,7 +20777,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -20832,7 +20832,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -20873,7 +20873,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -20897,7 +20897,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -20938,7 +20938,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -20982,19 +20982,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -21005,7 +21005,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -21016,7 +21016,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -21029,19 +21029,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -21052,7 +21052,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -21063,7 +21063,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -21118,7 +21118,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -21159,7 +21159,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -21183,7 +21183,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -21224,7 +21224,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -21271,19 +21271,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -21294,7 +21294,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -21305,7 +21305,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -21326,19 +21326,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -21349,7 +21349,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -21360,7 +21360,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -21405,7 +21405,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -21416,7 +21416,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -21457,7 +21457,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -21481,7 +21481,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -21492,7 +21492,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -21533,7 +21533,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -21577,19 +21577,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -21600,7 +21600,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -21611,7 +21611,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -21624,19 +21624,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -21647,7 +21647,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -21658,7 +21658,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -21714,7 +21714,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -21755,7 +21755,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -21779,7 +21779,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -21820,7 +21820,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -21864,19 +21864,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -21887,7 +21887,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -21898,7 +21898,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -21911,19 +21911,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -21934,7 +21934,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -21945,7 +21945,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -22000,7 +22000,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -22041,7 +22041,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -22065,7 +22065,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -22106,7 +22106,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -22153,19 +22153,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -22176,7 +22176,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -22187,7 +22187,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -22208,19 +22208,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -22231,7 +22231,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -22242,7 +22242,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -22287,7 +22287,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -22298,7 +22298,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -22339,7 +22339,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -22363,7 +22363,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -22374,7 +22374,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -22415,7 +22415,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -22459,19 +22459,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -22482,7 +22482,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -22493,7 +22493,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -22506,19 +22506,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -22529,7 +22529,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -22540,7 +22540,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -22596,7 +22596,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -22637,7 +22637,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -22661,7 +22661,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -22702,7 +22702,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -22746,19 +22746,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -22769,7 +22769,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -22780,7 +22780,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -22793,19 +22793,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -22816,7 +22816,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -22827,7 +22827,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -22883,7 +22883,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -22924,7 +22924,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -22948,7 +22948,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -22989,7 +22989,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -23033,19 +23033,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -23056,7 +23056,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -23067,7 +23067,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -23080,19 +23080,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -23103,7 +23103,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -23114,7 +23114,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -23169,7 +23169,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -23210,7 +23210,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -23234,7 +23234,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -23275,7 +23275,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -23382,19 +23382,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -23405,7 +23405,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -23416,7 +23416,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -23465,19 +23465,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -23488,7 +23488,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -23499,7 +23499,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -23515,7 +23515,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -23526,7 +23526,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -23567,7 +23567,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -23591,7 +23591,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -23602,7 +23602,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -23643,7 +23643,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -23687,19 +23687,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -23710,7 +23710,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -23721,7 +23721,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -23734,19 +23734,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -23757,7 +23757,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -23768,7 +23768,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -23823,7 +23823,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -23864,7 +23864,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -23888,7 +23888,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -23929,7 +23929,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -23973,19 +23973,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -23996,7 +23996,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -24007,7 +24007,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -24020,19 +24020,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -24043,7 +24043,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -24054,7 +24054,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -24109,7 +24109,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -24150,7 +24150,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -24174,7 +24174,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -24215,7 +24215,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -24262,19 +24262,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -24285,7 +24285,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -24296,7 +24296,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -24345,19 +24345,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -24368,7 +24368,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -24379,7 +24379,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -24395,7 +24395,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -24406,7 +24406,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -24447,7 +24447,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -24471,7 +24471,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -24482,7 +24482,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -24523,7 +24523,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -24567,19 +24567,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -24590,7 +24590,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -24601,7 +24601,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -24614,19 +24614,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -24637,7 +24637,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -24648,7 +24648,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -24703,7 +24703,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -24744,7 +24744,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -24768,7 +24768,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -24809,7 +24809,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -24853,19 +24853,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -24876,7 +24876,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -24887,7 +24887,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -24900,19 +24900,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -24923,7 +24923,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -24934,7 +24934,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -24989,7 +24989,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -25030,7 +25030,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -25054,7 +25054,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -25095,7 +25095,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -25142,19 +25142,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -25165,7 +25165,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -25176,7 +25176,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -25197,19 +25197,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -25220,7 +25220,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -25231,7 +25231,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -25276,7 +25276,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -25287,7 +25287,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -25328,7 +25328,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -25352,7 +25352,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -25363,7 +25363,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -25404,7 +25404,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -25448,19 +25448,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -25471,7 +25471,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -25482,7 +25482,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -25495,19 +25495,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -25518,7 +25518,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -25529,7 +25529,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -25585,7 +25585,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -25626,7 +25626,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -25650,7 +25650,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -25691,7 +25691,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -25735,19 +25735,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -25758,7 +25758,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -25769,7 +25769,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -25782,19 +25782,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -25805,7 +25805,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -25816,7 +25816,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -25871,7 +25871,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -25912,7 +25912,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -25936,7 +25936,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -25977,7 +25977,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -26024,19 +26024,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -26047,7 +26047,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -26058,7 +26058,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -26079,19 +26079,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -26102,7 +26102,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -26113,7 +26113,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -26158,7 +26158,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -26169,7 +26169,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -26210,7 +26210,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -26234,7 +26234,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -26245,7 +26245,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -26286,7 +26286,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -26330,19 +26330,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -26353,7 +26353,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -26364,7 +26364,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -26377,19 +26377,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -26400,7 +26400,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -26411,7 +26411,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -26467,7 +26467,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -26508,7 +26508,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -26532,7 +26532,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -26573,7 +26573,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -26617,19 +26617,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -26640,7 +26640,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -26651,7 +26651,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -26664,19 +26664,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -26687,7 +26687,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -26698,7 +26698,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -26754,7 +26754,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -26795,7 +26795,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -26819,7 +26819,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -26860,7 +26860,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -26904,19 +26904,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -26927,7 +26927,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -26938,7 +26938,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -26951,19 +26951,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -26974,7 +26974,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -26985,7 +26985,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -27040,7 +27040,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -27081,7 +27081,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -27105,7 +27105,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -27146,7 +27146,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -27252,19 +27252,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -27275,7 +27275,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -27286,7 +27286,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -27335,19 +27335,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -27358,7 +27358,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -27369,7 +27369,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -27385,7 +27385,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -27396,7 +27396,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -27437,7 +27437,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -27461,7 +27461,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -27472,7 +27472,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -27513,7 +27513,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -27557,19 +27557,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -27580,7 +27580,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -27591,7 +27591,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -27604,19 +27604,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -27627,7 +27627,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -27638,7 +27638,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -27693,7 +27693,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -27734,7 +27734,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -27758,7 +27758,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -27799,7 +27799,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -27843,19 +27843,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -27866,7 +27866,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -27877,7 +27877,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -27890,19 +27890,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -27913,7 +27913,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -27924,7 +27924,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -27979,7 +27979,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -28020,7 +28020,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -28044,7 +28044,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -28085,7 +28085,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -28132,19 +28132,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -28155,7 +28155,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -28166,7 +28166,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -28215,19 +28215,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -28238,7 +28238,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -28249,7 +28249,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -28265,7 +28265,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -28276,7 +28276,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -28317,7 +28317,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -28341,7 +28341,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -28352,7 +28352,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -28393,7 +28393,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -28437,19 +28437,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -28460,7 +28460,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -28471,7 +28471,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -28484,19 +28484,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -28507,7 +28507,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -28518,7 +28518,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -28573,7 +28573,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -28614,7 +28614,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -28638,7 +28638,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -28679,7 +28679,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -28723,19 +28723,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -28746,7 +28746,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -28757,7 +28757,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -28770,19 +28770,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -28793,7 +28793,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -28804,7 +28804,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -28859,7 +28859,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -28900,7 +28900,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -28924,7 +28924,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -28965,7 +28965,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -29012,19 +29012,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -29035,7 +29035,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -29046,7 +29046,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -29067,19 +29067,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -29090,7 +29090,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -29101,7 +29101,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -29146,7 +29146,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -29157,7 +29157,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -29198,7 +29198,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -29222,7 +29222,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -29233,7 +29233,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -29274,7 +29274,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -29318,19 +29318,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -29341,7 +29341,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -29352,7 +29352,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -29365,19 +29365,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -29388,7 +29388,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -29399,7 +29399,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -29455,7 +29455,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -29496,7 +29496,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -29520,7 +29520,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -29561,7 +29561,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -29605,19 +29605,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -29628,7 +29628,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -29639,7 +29639,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -29652,19 +29652,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -29675,7 +29675,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -29686,7 +29686,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -29741,7 +29741,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -29782,7 +29782,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -29806,7 +29806,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -29847,7 +29847,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -29894,19 +29894,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -29917,7 +29917,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -29928,7 +29928,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -29949,19 +29949,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -29972,7 +29972,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -29983,7 +29983,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -30028,7 +30028,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -30039,7 +30039,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -30080,7 +30080,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -30104,7 +30104,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -30115,7 +30115,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -30156,7 +30156,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -30200,19 +30200,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -30223,7 +30223,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -30234,7 +30234,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -30247,19 +30247,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -30270,7 +30270,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -30281,7 +30281,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -30337,7 +30337,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -30378,7 +30378,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -30402,7 +30402,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -30443,7 +30443,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -30487,19 +30487,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -30510,7 +30510,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -30521,7 +30521,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -30534,19 +30534,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -30557,7 +30557,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -30568,7 +30568,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -30624,7 +30624,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -30665,7 +30665,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -30689,7 +30689,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -30730,7 +30730,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -30774,19 +30774,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -30797,7 +30797,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -30808,7 +30808,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -30821,19 +30821,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -30844,7 +30844,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -30855,7 +30855,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -30910,7 +30910,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -30951,7 +30951,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -30975,7 +30975,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -31016,7 +31016,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -31085,19 +31085,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -31108,7 +31108,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -31119,7 +31119,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -31168,19 +31168,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -31191,7 +31191,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -31202,7 +31202,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -31218,7 +31218,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -31229,7 +31229,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -31270,7 +31270,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -31294,7 +31294,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -31305,7 +31305,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -31346,7 +31346,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -31390,19 +31390,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -31413,7 +31413,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -31424,7 +31424,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -31437,19 +31437,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -31460,7 +31460,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -31471,7 +31471,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -31526,7 +31526,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -31567,7 +31567,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -31591,7 +31591,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -31632,7 +31632,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -31676,19 +31676,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -31699,7 +31699,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -31710,7 +31710,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -31723,19 +31723,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -31746,7 +31746,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -31757,7 +31757,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -31812,7 +31812,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -31853,7 +31853,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -31877,7 +31877,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -31918,7 +31918,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -31965,19 +31965,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -31988,7 +31988,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -31999,7 +31999,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -32048,19 +32048,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -32071,7 +32071,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -32082,7 +32082,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -32098,7 +32098,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -32109,7 +32109,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -32150,7 +32150,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -32174,7 +32174,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -32185,7 +32185,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -32226,7 +32226,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -32270,19 +32270,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -32293,7 +32293,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -32304,7 +32304,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -32317,19 +32317,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -32340,7 +32340,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -32351,7 +32351,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -32406,7 +32406,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -32447,7 +32447,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -32471,7 +32471,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -32512,7 +32512,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -32556,19 +32556,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -32579,7 +32579,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -32590,7 +32590,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -32603,19 +32603,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -32626,7 +32626,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -32637,7 +32637,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -32692,7 +32692,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -32733,7 +32733,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -32757,7 +32757,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -32798,7 +32798,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -32845,19 +32845,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -32868,7 +32868,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -32879,7 +32879,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -32900,19 +32900,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -32923,7 +32923,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -32934,7 +32934,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -32979,7 +32979,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -32990,7 +32990,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -33031,7 +33031,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -33055,7 +33055,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -33066,7 +33066,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -33107,7 +33107,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -33151,19 +33151,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -33174,7 +33174,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -33185,7 +33185,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -33198,19 +33198,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -33221,7 +33221,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -33232,7 +33232,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -33288,7 +33288,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -33329,7 +33329,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -33353,7 +33353,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -33394,7 +33394,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -33438,19 +33438,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -33461,7 +33461,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -33472,7 +33472,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -33485,19 +33485,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -33508,7 +33508,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -33519,7 +33519,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -33574,7 +33574,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -33615,7 +33615,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -33639,7 +33639,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -33680,7 +33680,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -33727,19 +33727,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -33750,7 +33750,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -33761,7 +33761,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -33782,19 +33782,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -33805,7 +33805,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -33816,7 +33816,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -33861,7 +33861,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -33872,7 +33872,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -33913,7 +33913,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -33937,7 +33937,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -33948,7 +33948,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -33989,7 +33989,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -34033,19 +34033,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -34056,7 +34056,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -34067,7 +34067,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -34080,19 +34080,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -34103,7 +34103,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -34114,7 +34114,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -34170,7 +34170,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -34211,7 +34211,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -34235,7 +34235,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -34276,7 +34276,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -34320,19 +34320,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -34343,7 +34343,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -34354,7 +34354,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -34367,19 +34367,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -34390,7 +34390,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -34401,7 +34401,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -34457,7 +34457,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -34498,7 +34498,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -34522,7 +34522,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -34563,7 +34563,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -34607,19 +34607,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -34630,7 +34630,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -34641,7 +34641,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -34654,19 +34654,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -34677,7 +34677,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -34688,7 +34688,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -34743,7 +34743,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -34784,7 +34784,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -34808,7 +34808,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -34849,7 +34849,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; diff --git a/dist/contracts/checkout.d.ts b/dist/contracts/checkout.d.ts index 33a0bc9..b311cb6 100644 --- a/dist/contracts/checkout.d.ts +++ b/dist/contracts/checkout.d.ts @@ -317,19 +317,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -340,7 +340,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -351,7 +351,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -400,19 +400,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -423,7 +423,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -434,7 +434,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -450,7 +450,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -461,7 +461,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -502,7 +502,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -526,7 +526,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -537,7 +537,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -578,7 +578,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -622,19 +622,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -645,7 +645,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -656,7 +656,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -669,19 +669,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -692,7 +692,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -703,7 +703,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -758,7 +758,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -799,7 +799,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -823,7 +823,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -864,7 +864,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -908,19 +908,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -931,7 +931,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -942,7 +942,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -955,19 +955,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -978,7 +978,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -989,7 +989,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -1044,7 +1044,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1085,7 +1085,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1109,7 +1109,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1150,7 +1150,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1197,19 +1197,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1220,7 +1220,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1231,7 +1231,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -1280,19 +1280,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1303,7 +1303,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1314,7 +1314,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -1330,7 +1330,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -1341,7 +1341,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -1382,7 +1382,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1406,7 +1406,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -1417,7 +1417,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -1458,7 +1458,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1502,19 +1502,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1525,7 +1525,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1536,7 +1536,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -1549,19 +1549,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1572,7 +1572,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1583,7 +1583,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -1638,7 +1638,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1679,7 +1679,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -1703,7 +1703,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1744,7 +1744,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -1788,19 +1788,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1811,7 +1811,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1822,7 +1822,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -1835,19 +1835,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1858,7 +1858,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1869,7 +1869,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -1924,7 +1924,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1965,7 +1965,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1989,7 +1989,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2030,7 +2030,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2077,19 +2077,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2100,7 +2100,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2111,7 +2111,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -2132,19 +2132,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2155,7 +2155,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2166,7 +2166,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -2211,7 +2211,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -2222,7 +2222,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -2263,7 +2263,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2287,7 +2287,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -2298,7 +2298,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -2339,7 +2339,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2383,19 +2383,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2406,7 +2406,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2417,7 +2417,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -2430,19 +2430,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2453,7 +2453,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2464,7 +2464,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -2520,7 +2520,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2561,7 +2561,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -2585,7 +2585,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2626,7 +2626,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -2670,19 +2670,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2693,7 +2693,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2704,7 +2704,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -2717,19 +2717,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2740,7 +2740,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2751,7 +2751,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -2806,7 +2806,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2847,7 +2847,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2871,7 +2871,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2912,7 +2912,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2959,19 +2959,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2982,7 +2982,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2993,7 +2993,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -3014,19 +3014,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3037,7 +3037,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3048,7 +3048,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -3093,7 +3093,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -3104,7 +3104,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -3145,7 +3145,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3169,7 +3169,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -3180,7 +3180,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -3221,7 +3221,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3265,19 +3265,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3288,7 +3288,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3299,7 +3299,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -3312,19 +3312,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3335,7 +3335,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3346,7 +3346,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -3402,7 +3402,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3443,7 +3443,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -3467,7 +3467,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3508,7 +3508,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -3552,19 +3552,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3575,7 +3575,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3586,7 +3586,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -3599,19 +3599,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3622,7 +3622,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3633,7 +3633,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -3689,7 +3689,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3730,7 +3730,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3754,7 +3754,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3795,7 +3795,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3839,19 +3839,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3862,7 +3862,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3873,7 +3873,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -3886,19 +3886,19 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3909,7 +3909,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3920,7 +3920,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -3975,7 +3975,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4016,7 +4016,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4040,7 +4040,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4081,7 +4081,7 @@ declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWit currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4138,19 +4138,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4161,7 +4161,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4172,7 +4172,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -4221,19 +4221,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4244,7 +4244,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4255,7 +4255,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -4271,7 +4271,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -4282,7 +4282,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4323,7 +4323,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4347,7 +4347,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -4358,7 +4358,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4399,7 +4399,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4443,19 +4443,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4466,7 +4466,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4477,7 +4477,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -4490,19 +4490,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4513,7 +4513,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4524,7 +4524,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -4579,7 +4579,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4620,7 +4620,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -4644,7 +4644,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4685,7 +4685,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -4729,19 +4729,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4752,7 +4752,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4763,7 +4763,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -4776,19 +4776,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4799,7 +4799,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4810,7 +4810,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -4865,7 +4865,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4906,7 +4906,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4930,7 +4930,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4971,7 +4971,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5018,19 +5018,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5041,7 +5041,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5052,7 +5052,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -5101,19 +5101,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5124,7 +5124,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5135,7 +5135,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -5151,7 +5151,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -5162,7 +5162,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -5203,7 +5203,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5227,7 +5227,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -5238,7 +5238,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -5279,7 +5279,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5323,19 +5323,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5346,7 +5346,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5357,7 +5357,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -5370,19 +5370,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5393,7 +5393,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5404,7 +5404,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -5459,7 +5459,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5500,7 +5500,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -5524,7 +5524,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5565,7 +5565,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -5609,19 +5609,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5632,7 +5632,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5643,7 +5643,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -5656,19 +5656,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5679,7 +5679,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5690,7 +5690,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -5745,7 +5745,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5786,7 +5786,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5810,7 +5810,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5851,7 +5851,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5898,19 +5898,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5921,7 +5921,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5932,7 +5932,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -5953,19 +5953,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5976,7 +5976,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5987,7 +5987,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -6032,7 +6032,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -6043,7 +6043,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -6084,7 +6084,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6108,7 +6108,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -6119,7 +6119,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -6160,7 +6160,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6204,19 +6204,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6227,7 +6227,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6238,7 +6238,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -6251,19 +6251,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6274,7 +6274,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6285,7 +6285,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -6341,7 +6341,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6382,7 +6382,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -6406,7 +6406,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6447,7 +6447,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -6491,19 +6491,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6514,7 +6514,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6525,7 +6525,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -6538,19 +6538,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6561,7 +6561,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6572,7 +6572,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -6627,7 +6627,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6668,7 +6668,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6692,7 +6692,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6733,7 +6733,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6780,19 +6780,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6803,7 +6803,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6814,7 +6814,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -6835,19 +6835,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6858,7 +6858,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6869,7 +6869,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -6914,7 +6914,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -6925,7 +6925,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -6966,7 +6966,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6990,7 +6990,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -7001,7 +7001,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -7042,7 +7042,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7086,19 +7086,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7109,7 +7109,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7120,7 +7120,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -7133,19 +7133,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7156,7 +7156,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7167,7 +7167,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -7223,7 +7223,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7264,7 +7264,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -7288,7 +7288,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7329,7 +7329,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -7373,19 +7373,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7396,7 +7396,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7407,7 +7407,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -7420,19 +7420,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7443,7 +7443,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7454,7 +7454,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -7510,7 +7510,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7551,7 +7551,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7575,7 +7575,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7616,7 +7616,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7660,19 +7660,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7683,7 +7683,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7694,7 +7694,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -7707,19 +7707,19 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7730,7 +7730,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7741,7 +7741,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -7796,7 +7796,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7837,7 +7837,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7861,7 +7861,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7902,7 +7902,7 @@ declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilder currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8008,19 +8008,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -8031,7 +8031,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8042,7 +8042,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -8091,19 +8091,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -8114,7 +8114,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8125,7 +8125,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -8141,7 +8141,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -8152,7 +8152,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -8193,7 +8193,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8217,7 +8217,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -8228,7 +8228,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -8269,7 +8269,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8313,19 +8313,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -8336,7 +8336,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8347,7 +8347,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -8360,19 +8360,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -8383,7 +8383,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8394,7 +8394,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -8449,7 +8449,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -8490,7 +8490,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -8514,7 +8514,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -8555,7 +8555,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -8599,19 +8599,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -8622,7 +8622,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8633,7 +8633,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -8646,19 +8646,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -8669,7 +8669,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8680,7 +8680,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -8735,7 +8735,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -8776,7 +8776,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8800,7 +8800,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -8841,7 +8841,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8888,19 +8888,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -8911,7 +8911,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8922,7 +8922,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -8971,19 +8971,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -8994,7 +8994,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9005,7 +9005,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -9021,7 +9021,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -9032,7 +9032,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -9073,7 +9073,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9097,7 +9097,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -9108,7 +9108,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -9149,7 +9149,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9193,19 +9193,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -9216,7 +9216,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9227,7 +9227,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -9240,19 +9240,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -9263,7 +9263,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9274,7 +9274,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -9329,7 +9329,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -9370,7 +9370,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -9394,7 +9394,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -9435,7 +9435,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -9479,19 +9479,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -9502,7 +9502,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9513,7 +9513,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -9526,19 +9526,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -9549,7 +9549,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9560,7 +9560,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -9615,7 +9615,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -9656,7 +9656,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9680,7 +9680,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -9721,7 +9721,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9768,19 +9768,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -9791,7 +9791,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9802,7 +9802,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -9823,19 +9823,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -9846,7 +9846,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9857,7 +9857,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -9902,7 +9902,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -9913,7 +9913,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -9954,7 +9954,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9978,7 +9978,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -9989,7 +9989,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -10030,7 +10030,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10074,19 +10074,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -10097,7 +10097,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10108,7 +10108,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -10121,19 +10121,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -10144,7 +10144,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10155,7 +10155,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -10211,7 +10211,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10252,7 +10252,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -10276,7 +10276,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10317,7 +10317,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -10361,19 +10361,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -10384,7 +10384,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10395,7 +10395,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -10408,19 +10408,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -10431,7 +10431,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10442,7 +10442,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -10497,7 +10497,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10538,7 +10538,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10562,7 +10562,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10603,7 +10603,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10650,19 +10650,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -10673,7 +10673,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10684,7 +10684,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -10705,19 +10705,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -10728,7 +10728,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10739,7 +10739,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -10784,7 +10784,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -10795,7 +10795,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -10836,7 +10836,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10860,7 +10860,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -10871,7 +10871,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -10912,7 +10912,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10956,19 +10956,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -10979,7 +10979,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10990,7 +10990,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -11003,19 +11003,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -11026,7 +11026,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11037,7 +11037,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -11093,7 +11093,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11134,7 +11134,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -11158,7 +11158,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11199,7 +11199,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -11243,19 +11243,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -11266,7 +11266,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11277,7 +11277,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -11290,19 +11290,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -11313,7 +11313,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11324,7 +11324,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -11380,7 +11380,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11421,7 +11421,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11445,7 +11445,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11486,7 +11486,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11530,19 +11530,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -11553,7 +11553,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11564,7 +11564,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -11577,19 +11577,19 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -11600,7 +11600,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11611,7 +11611,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -11666,7 +11666,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11707,7 +11707,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11731,7 +11731,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11772,7 +11772,7 @@ declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11841,19 +11841,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -11864,7 +11864,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11875,7 +11875,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -11924,19 +11924,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -11947,7 +11947,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11958,7 +11958,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -11974,7 +11974,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -11985,7 +11985,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -12026,7 +12026,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12050,7 +12050,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -12061,7 +12061,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -12102,7 +12102,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12146,19 +12146,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -12169,7 +12169,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12180,7 +12180,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -12193,19 +12193,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -12216,7 +12216,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12227,7 +12227,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -12282,7 +12282,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12323,7 +12323,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -12347,7 +12347,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12388,7 +12388,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -12432,19 +12432,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -12455,7 +12455,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12466,7 +12466,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -12479,19 +12479,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -12502,7 +12502,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12513,7 +12513,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -12568,7 +12568,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12609,7 +12609,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12633,7 +12633,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12674,7 +12674,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12721,19 +12721,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -12744,7 +12744,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12755,7 +12755,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -12804,19 +12804,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -12827,7 +12827,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12838,7 +12838,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -12854,7 +12854,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -12865,7 +12865,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -12906,7 +12906,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12930,7 +12930,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -12941,7 +12941,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -12982,7 +12982,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13026,19 +13026,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -13049,7 +13049,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13060,7 +13060,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -13073,19 +13073,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -13096,7 +13096,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13107,7 +13107,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -13162,7 +13162,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13203,7 +13203,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -13227,7 +13227,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13268,7 +13268,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -13312,19 +13312,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -13335,7 +13335,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13346,7 +13346,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -13359,19 +13359,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -13382,7 +13382,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13393,7 +13393,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -13448,7 +13448,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13489,7 +13489,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13513,7 +13513,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13554,7 +13554,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13601,19 +13601,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -13624,7 +13624,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13635,7 +13635,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -13656,19 +13656,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -13679,7 +13679,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13690,7 +13690,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -13735,7 +13735,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -13746,7 +13746,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -13787,7 +13787,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13811,7 +13811,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -13822,7 +13822,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -13863,7 +13863,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13907,19 +13907,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -13930,7 +13930,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13941,7 +13941,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -13954,19 +13954,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -13977,7 +13977,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13988,7 +13988,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -14044,7 +14044,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14085,7 +14085,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -14109,7 +14109,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14150,7 +14150,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -14194,19 +14194,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -14217,7 +14217,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14228,7 +14228,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -14241,19 +14241,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -14264,7 +14264,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14275,7 +14275,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -14330,7 +14330,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14371,7 +14371,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -14395,7 +14395,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14436,7 +14436,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -14483,19 +14483,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -14506,7 +14506,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14517,7 +14517,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -14538,19 +14538,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -14561,7 +14561,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14572,7 +14572,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -14617,7 +14617,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -14628,7 +14628,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -14669,7 +14669,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -14693,7 +14693,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -14704,7 +14704,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -14745,7 +14745,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -14789,19 +14789,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -14812,7 +14812,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14823,7 +14823,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -14836,19 +14836,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -14859,7 +14859,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14870,7 +14870,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -14926,7 +14926,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14967,7 +14967,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -14991,7 +14991,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15032,7 +15032,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -15076,19 +15076,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -15099,7 +15099,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15110,7 +15110,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -15123,19 +15123,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -15146,7 +15146,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15157,7 +15157,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -15213,7 +15213,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15254,7 +15254,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15278,7 +15278,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15319,7 +15319,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15363,19 +15363,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -15386,7 +15386,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15397,7 +15397,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -15410,19 +15410,19 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -15433,7 +15433,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15444,7 +15444,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -15499,7 +15499,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15540,7 +15540,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15564,7 +15564,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15605,7 +15605,7 @@ declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWi currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15659,19 +15659,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -15682,7 +15682,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15693,7 +15693,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -15742,19 +15742,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -15765,7 +15765,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15776,7 +15776,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -15792,7 +15792,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -15803,7 +15803,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -15844,7 +15844,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15868,7 +15868,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -15879,7 +15879,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -15920,7 +15920,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15964,19 +15964,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -15987,7 +15987,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15998,7 +15998,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -16011,19 +16011,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -16034,7 +16034,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -16045,7 +16045,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -16100,7 +16100,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -16141,7 +16141,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -16165,7 +16165,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -16206,7 +16206,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -16250,19 +16250,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -16273,7 +16273,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -16284,7 +16284,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -16297,19 +16297,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -16320,7 +16320,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -16331,7 +16331,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -16386,7 +16386,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -16427,7 +16427,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -16451,7 +16451,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -16492,7 +16492,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -16539,19 +16539,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -16562,7 +16562,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -16573,7 +16573,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -16622,19 +16622,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -16645,7 +16645,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -16656,7 +16656,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -16672,7 +16672,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -16683,7 +16683,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -16724,7 +16724,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -16748,7 +16748,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -16759,7 +16759,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -16800,7 +16800,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -16844,19 +16844,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -16867,7 +16867,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -16878,7 +16878,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -16891,19 +16891,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -16914,7 +16914,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -16925,7 +16925,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -16980,7 +16980,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -17021,7 +17021,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -17045,7 +17045,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -17086,7 +17086,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -17130,19 +17130,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -17153,7 +17153,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -17164,7 +17164,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -17177,19 +17177,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -17200,7 +17200,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -17211,7 +17211,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -17266,7 +17266,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -17307,7 +17307,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -17331,7 +17331,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -17372,7 +17372,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -17419,19 +17419,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -17442,7 +17442,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -17453,7 +17453,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -17474,19 +17474,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -17497,7 +17497,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -17508,7 +17508,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -17553,7 +17553,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -17564,7 +17564,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -17605,7 +17605,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -17629,7 +17629,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -17640,7 +17640,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -17681,7 +17681,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -17725,19 +17725,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -17748,7 +17748,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -17759,7 +17759,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -17772,19 +17772,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -17795,7 +17795,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -17806,7 +17806,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -17862,7 +17862,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -17903,7 +17903,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -17927,7 +17927,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -17968,7 +17968,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -18012,19 +18012,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -18035,7 +18035,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -18046,7 +18046,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -18059,19 +18059,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -18082,7 +18082,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -18093,7 +18093,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -18148,7 +18148,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -18189,7 +18189,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -18213,7 +18213,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -18254,7 +18254,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -18301,19 +18301,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -18324,7 +18324,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -18335,7 +18335,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -18356,19 +18356,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -18379,7 +18379,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -18390,7 +18390,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -18435,7 +18435,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -18446,7 +18446,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -18487,7 +18487,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -18511,7 +18511,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -18522,7 +18522,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -18563,7 +18563,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -18607,19 +18607,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -18630,7 +18630,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -18641,7 +18641,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -18654,19 +18654,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -18677,7 +18677,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -18688,7 +18688,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -18744,7 +18744,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -18785,7 +18785,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -18809,7 +18809,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -18850,7 +18850,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -18894,19 +18894,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -18917,7 +18917,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -18928,7 +18928,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -18941,19 +18941,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -18964,7 +18964,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -18975,7 +18975,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -19031,7 +19031,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -19072,7 +19072,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -19096,7 +19096,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -19137,7 +19137,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -19181,19 +19181,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -19204,7 +19204,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -19215,7 +19215,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -19228,19 +19228,19 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -19251,7 +19251,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -19262,7 +19262,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -19317,7 +19317,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -19358,7 +19358,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -19382,7 +19382,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -19423,7 +19423,7 @@ declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithIn currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -19511,19 +19511,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -19534,7 +19534,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -19545,7 +19545,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -19594,19 +19594,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -19617,7 +19617,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -19628,7 +19628,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -19644,7 +19644,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -19655,7 +19655,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -19696,7 +19696,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -19720,7 +19720,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -19731,7 +19731,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -19772,7 +19772,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -19816,19 +19816,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -19839,7 +19839,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -19850,7 +19850,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -19863,19 +19863,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -19886,7 +19886,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -19897,7 +19897,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -19952,7 +19952,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -19993,7 +19993,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -20017,7 +20017,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -20058,7 +20058,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -20102,19 +20102,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -20125,7 +20125,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -20136,7 +20136,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -20149,19 +20149,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -20172,7 +20172,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -20183,7 +20183,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -20238,7 +20238,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -20279,7 +20279,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -20303,7 +20303,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -20344,7 +20344,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -20391,19 +20391,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -20414,7 +20414,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -20425,7 +20425,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -20474,19 +20474,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -20497,7 +20497,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -20508,7 +20508,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -20524,7 +20524,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -20535,7 +20535,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -20576,7 +20576,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -20600,7 +20600,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -20611,7 +20611,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -20652,7 +20652,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -20696,19 +20696,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -20719,7 +20719,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -20730,7 +20730,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -20743,19 +20743,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -20766,7 +20766,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -20777,7 +20777,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -20832,7 +20832,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -20873,7 +20873,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -20897,7 +20897,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -20938,7 +20938,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -20982,19 +20982,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -21005,7 +21005,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -21016,7 +21016,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -21029,19 +21029,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -21052,7 +21052,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -21063,7 +21063,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -21118,7 +21118,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -21159,7 +21159,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -21183,7 +21183,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -21224,7 +21224,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -21271,19 +21271,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -21294,7 +21294,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -21305,7 +21305,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -21326,19 +21326,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -21349,7 +21349,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -21360,7 +21360,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -21405,7 +21405,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -21416,7 +21416,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -21457,7 +21457,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -21481,7 +21481,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -21492,7 +21492,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -21533,7 +21533,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -21577,19 +21577,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -21600,7 +21600,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -21611,7 +21611,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -21624,19 +21624,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -21647,7 +21647,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -21658,7 +21658,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -21714,7 +21714,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -21755,7 +21755,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -21779,7 +21779,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -21820,7 +21820,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -21864,19 +21864,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -21887,7 +21887,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -21898,7 +21898,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -21911,19 +21911,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -21934,7 +21934,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -21945,7 +21945,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -22000,7 +22000,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -22041,7 +22041,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -22065,7 +22065,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -22106,7 +22106,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -22153,19 +22153,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -22176,7 +22176,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -22187,7 +22187,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -22208,19 +22208,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -22231,7 +22231,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -22242,7 +22242,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -22287,7 +22287,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -22298,7 +22298,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -22339,7 +22339,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -22363,7 +22363,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -22374,7 +22374,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -22415,7 +22415,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -22459,19 +22459,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -22482,7 +22482,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -22493,7 +22493,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -22506,19 +22506,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -22529,7 +22529,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -22540,7 +22540,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -22596,7 +22596,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -22637,7 +22637,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -22661,7 +22661,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -22702,7 +22702,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -22746,19 +22746,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -22769,7 +22769,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -22780,7 +22780,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -22793,19 +22793,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -22816,7 +22816,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -22827,7 +22827,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -22883,7 +22883,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -22924,7 +22924,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -22948,7 +22948,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -22989,7 +22989,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -23033,19 +23033,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -23056,7 +23056,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -23067,7 +23067,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -23080,19 +23080,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -23103,7 +23103,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -23114,7 +23114,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -23169,7 +23169,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -23210,7 +23210,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -23234,7 +23234,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -23275,7 +23275,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -23382,19 +23382,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -23405,7 +23405,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -23416,7 +23416,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -23465,19 +23465,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -23488,7 +23488,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -23499,7 +23499,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -23515,7 +23515,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -23526,7 +23526,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -23567,7 +23567,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -23591,7 +23591,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -23602,7 +23602,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -23643,7 +23643,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -23687,19 +23687,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -23710,7 +23710,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -23721,7 +23721,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -23734,19 +23734,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -23757,7 +23757,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -23768,7 +23768,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -23823,7 +23823,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -23864,7 +23864,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -23888,7 +23888,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -23929,7 +23929,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -23973,19 +23973,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -23996,7 +23996,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -24007,7 +24007,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -24020,19 +24020,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -24043,7 +24043,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -24054,7 +24054,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -24109,7 +24109,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -24150,7 +24150,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -24174,7 +24174,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -24215,7 +24215,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -24262,19 +24262,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -24285,7 +24285,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -24296,7 +24296,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -24345,19 +24345,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -24368,7 +24368,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -24379,7 +24379,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -24395,7 +24395,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -24406,7 +24406,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -24447,7 +24447,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -24471,7 +24471,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -24482,7 +24482,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -24523,7 +24523,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -24567,19 +24567,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -24590,7 +24590,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -24601,7 +24601,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -24614,19 +24614,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -24637,7 +24637,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -24648,7 +24648,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -24703,7 +24703,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -24744,7 +24744,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -24768,7 +24768,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -24809,7 +24809,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -24853,19 +24853,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -24876,7 +24876,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -24887,7 +24887,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -24900,19 +24900,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -24923,7 +24923,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -24934,7 +24934,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -24989,7 +24989,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -25030,7 +25030,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -25054,7 +25054,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -25095,7 +25095,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -25142,19 +25142,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -25165,7 +25165,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -25176,7 +25176,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -25197,19 +25197,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -25220,7 +25220,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -25231,7 +25231,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -25276,7 +25276,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -25287,7 +25287,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -25328,7 +25328,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -25352,7 +25352,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -25363,7 +25363,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -25404,7 +25404,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -25448,19 +25448,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -25471,7 +25471,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -25482,7 +25482,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -25495,19 +25495,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -25518,7 +25518,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -25529,7 +25529,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -25585,7 +25585,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -25626,7 +25626,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -25650,7 +25650,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -25691,7 +25691,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -25735,19 +25735,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -25758,7 +25758,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -25769,7 +25769,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -25782,19 +25782,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -25805,7 +25805,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -25816,7 +25816,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -25871,7 +25871,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -25912,7 +25912,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -25936,7 +25936,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -25977,7 +25977,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -26024,19 +26024,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -26047,7 +26047,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -26058,7 +26058,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -26079,19 +26079,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -26102,7 +26102,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -26113,7 +26113,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -26158,7 +26158,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -26169,7 +26169,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -26210,7 +26210,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -26234,7 +26234,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -26245,7 +26245,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -26286,7 +26286,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -26330,19 +26330,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -26353,7 +26353,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -26364,7 +26364,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -26377,19 +26377,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -26400,7 +26400,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -26411,7 +26411,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -26467,7 +26467,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -26508,7 +26508,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -26532,7 +26532,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -26573,7 +26573,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -26617,19 +26617,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -26640,7 +26640,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -26651,7 +26651,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -26664,19 +26664,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -26687,7 +26687,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -26698,7 +26698,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -26754,7 +26754,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -26795,7 +26795,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -26819,7 +26819,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -26860,7 +26860,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -26904,19 +26904,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -26927,7 +26927,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -26938,7 +26938,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -26951,19 +26951,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -26974,7 +26974,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -26985,7 +26985,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -27040,7 +27040,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -27081,7 +27081,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -27105,7 +27105,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -27146,7 +27146,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -27252,19 +27252,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -27275,7 +27275,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -27286,7 +27286,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -27335,19 +27335,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -27358,7 +27358,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -27369,7 +27369,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -27385,7 +27385,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -27396,7 +27396,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -27437,7 +27437,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -27461,7 +27461,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -27472,7 +27472,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -27513,7 +27513,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -27557,19 +27557,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -27580,7 +27580,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -27591,7 +27591,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -27604,19 +27604,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -27627,7 +27627,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -27638,7 +27638,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -27693,7 +27693,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -27734,7 +27734,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -27758,7 +27758,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -27799,7 +27799,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -27843,19 +27843,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -27866,7 +27866,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -27877,7 +27877,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -27890,19 +27890,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -27913,7 +27913,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -27924,7 +27924,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -27979,7 +27979,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -28020,7 +28020,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -28044,7 +28044,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -28085,7 +28085,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -28132,19 +28132,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -28155,7 +28155,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -28166,7 +28166,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -28215,19 +28215,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -28238,7 +28238,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -28249,7 +28249,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -28265,7 +28265,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -28276,7 +28276,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -28317,7 +28317,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -28341,7 +28341,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -28352,7 +28352,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -28393,7 +28393,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -28437,19 +28437,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -28460,7 +28460,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -28471,7 +28471,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -28484,19 +28484,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -28507,7 +28507,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -28518,7 +28518,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -28573,7 +28573,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -28614,7 +28614,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -28638,7 +28638,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -28679,7 +28679,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -28723,19 +28723,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -28746,7 +28746,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -28757,7 +28757,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -28770,19 +28770,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -28793,7 +28793,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -28804,7 +28804,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -28859,7 +28859,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -28900,7 +28900,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -28924,7 +28924,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -28965,7 +28965,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -29012,19 +29012,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -29035,7 +29035,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -29046,7 +29046,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -29067,19 +29067,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -29090,7 +29090,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -29101,7 +29101,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -29146,7 +29146,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -29157,7 +29157,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -29198,7 +29198,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -29222,7 +29222,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -29233,7 +29233,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -29274,7 +29274,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -29318,19 +29318,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -29341,7 +29341,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -29352,7 +29352,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -29365,19 +29365,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -29388,7 +29388,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -29399,7 +29399,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -29455,7 +29455,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -29496,7 +29496,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -29520,7 +29520,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -29561,7 +29561,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -29605,19 +29605,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -29628,7 +29628,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -29639,7 +29639,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -29652,19 +29652,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -29675,7 +29675,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -29686,7 +29686,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -29741,7 +29741,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -29782,7 +29782,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -29806,7 +29806,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -29847,7 +29847,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -29894,19 +29894,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -29917,7 +29917,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -29928,7 +29928,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -29949,19 +29949,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -29972,7 +29972,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -29983,7 +29983,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -30028,7 +30028,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -30039,7 +30039,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -30080,7 +30080,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -30104,7 +30104,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -30115,7 +30115,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -30156,7 +30156,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -30200,19 +30200,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -30223,7 +30223,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -30234,7 +30234,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -30247,19 +30247,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -30270,7 +30270,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -30281,7 +30281,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -30337,7 +30337,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -30378,7 +30378,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -30402,7 +30402,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -30443,7 +30443,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -30487,19 +30487,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -30510,7 +30510,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -30521,7 +30521,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -30534,19 +30534,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -30557,7 +30557,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -30568,7 +30568,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -30624,7 +30624,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -30665,7 +30665,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -30689,7 +30689,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -30730,7 +30730,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -30774,19 +30774,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -30797,7 +30797,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -30808,7 +30808,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -30821,19 +30821,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -30844,7 +30844,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -30855,7 +30855,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -30910,7 +30910,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -30951,7 +30951,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -30975,7 +30975,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -31016,7 +31016,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -31085,19 +31085,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -31108,7 +31108,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -31119,7 +31119,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -31168,19 +31168,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -31191,7 +31191,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -31202,7 +31202,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -31218,7 +31218,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -31229,7 +31229,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -31270,7 +31270,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -31294,7 +31294,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -31305,7 +31305,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -31346,7 +31346,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -31390,19 +31390,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -31413,7 +31413,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -31424,7 +31424,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -31437,19 +31437,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -31460,7 +31460,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -31471,7 +31471,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -31526,7 +31526,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -31567,7 +31567,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -31591,7 +31591,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -31632,7 +31632,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -31676,19 +31676,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -31699,7 +31699,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -31710,7 +31710,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -31723,19 +31723,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -31746,7 +31746,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -31757,7 +31757,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -31812,7 +31812,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -31853,7 +31853,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -31877,7 +31877,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -31918,7 +31918,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -31965,19 +31965,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -31988,7 +31988,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -31999,7 +31999,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -32048,19 +32048,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -32071,7 +32071,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -32082,7 +32082,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -32098,7 +32098,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -32109,7 +32109,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -32150,7 +32150,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -32174,7 +32174,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -32185,7 +32185,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -32226,7 +32226,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -32270,19 +32270,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -32293,7 +32293,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -32304,7 +32304,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -32317,19 +32317,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -32340,7 +32340,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -32351,7 +32351,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -32406,7 +32406,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -32447,7 +32447,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -32471,7 +32471,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -32512,7 +32512,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -32556,19 +32556,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -32579,7 +32579,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -32590,7 +32590,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -32603,19 +32603,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -32626,7 +32626,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -32637,7 +32637,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -32692,7 +32692,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -32733,7 +32733,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -32757,7 +32757,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -32798,7 +32798,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -32845,19 +32845,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -32868,7 +32868,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -32879,7 +32879,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -32900,19 +32900,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -32923,7 +32923,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -32934,7 +32934,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -32979,7 +32979,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -32990,7 +32990,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -33031,7 +33031,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -33055,7 +33055,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -33066,7 +33066,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -33107,7 +33107,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -33151,19 +33151,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -33174,7 +33174,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -33185,7 +33185,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -33198,19 +33198,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -33221,7 +33221,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -33232,7 +33232,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -33288,7 +33288,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -33329,7 +33329,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -33353,7 +33353,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -33394,7 +33394,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -33438,19 +33438,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -33461,7 +33461,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -33472,7 +33472,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -33485,19 +33485,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -33508,7 +33508,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -33519,7 +33519,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -33574,7 +33574,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -33615,7 +33615,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -33639,7 +33639,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -33680,7 +33680,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -33727,19 +33727,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -33750,7 +33750,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -33761,7 +33761,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -33782,19 +33782,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -33805,7 +33805,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -33816,7 +33816,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -33861,7 +33861,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -33872,7 +33872,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -33913,7 +33913,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -33937,7 +33937,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -33948,7 +33948,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -33989,7 +33989,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -34033,19 +34033,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -34056,7 +34056,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -34067,7 +34067,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -34080,19 +34080,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -34103,7 +34103,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -34114,7 +34114,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -34170,7 +34170,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -34211,7 +34211,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -34235,7 +34235,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -34276,7 +34276,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -34320,19 +34320,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -34343,7 +34343,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -34354,7 +34354,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -34367,19 +34367,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -34390,7 +34390,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -34401,7 +34401,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -34457,7 +34457,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -34498,7 +34498,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -34522,7 +34522,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -34563,7 +34563,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -34607,19 +34607,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -34630,7 +34630,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -34641,7 +34641,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -34654,19 +34654,19 @@ declare const checkout: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -34677,7 +34677,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -34688,7 +34688,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -34743,7 +34743,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -34784,7 +34784,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -34808,7 +34808,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -34849,7 +34849,7 @@ declare const checkout: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; diff --git a/dist/contracts/checkout.js b/dist/contracts/checkout.js index 6a24016..4670c66 100644 --- a/dist/contracts/checkout.js +++ b/dist/contracts/checkout.js @@ -14,10 +14,10 @@ import { getCheckoutContract, paymentReceivedContract, registerInvoiceContract -} from "../chunk-6XWZHZXK.js"; -import "../chunk-7EZSTHMJ.js"; +} from "../chunk-4AJPTMW2.js"; +import "../chunk-CD2LZX3A.js"; +import "../chunk-T6X3KMH6.js"; import "../chunk-TGG53ETU.js"; -import "../chunk-CD4U22RQ.js"; import "../chunk-6M6LFZ3U.js"; export { ApplyDiscountCodeInputSchema, diff --git a/dist/contracts/products.cjs b/dist/contracts/products.cjs index 2add987..56f7a8c 100644 --- a/dist/contracts/products.cjs +++ b/dist/contracts/products.cjs @@ -37,7 +37,7 @@ var CurrencySchema = import_zod.z.enum(["USD", "SAT"]); // src/contracts/products.ts var ProductPriceSchema = import_zod2.z.object({ id: import_zod2.z.string(), - amountType: import_zod2.z.enum(["FIXED", "CUSTOM", "FREE"]), + amountType: import_zod2.z.enum(["FIXED", "CUSTOM"]), priceAmount: import_zod2.z.number().nullable(), currency: CurrencySchema }); diff --git a/dist/contracts/products.d.cts b/dist/contracts/products.d.cts index 0f9836c..0861880 100644 --- a/dist/contracts/products.d.cts +++ b/dist/contracts/products.d.cts @@ -3,19 +3,19 @@ import { z } from 'zod'; declare const ProductPriceSchema: z.ZodObject<{ id: z.ZodString; - amountType: z.ZodEnum<["FIXED", "CUSTOM", "FREE"]>; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>; declare const ProductSchema: z.ZodObject<{ id: z.ZodString; @@ -24,19 +24,19 @@ declare const ProductSchema: z.ZodObject<{ recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -47,7 +47,7 @@ declare const ProductSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -58,7 +58,7 @@ declare const ProductSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>; declare const ListProductsOutputSchema: z.ZodObject<{ @@ -69,19 +69,19 @@ declare const ListProductsOutputSchema: z.ZodObject<{ recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -92,7 +92,7 @@ declare const ListProductsOutputSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -103,7 +103,7 @@ declare const ListProductsOutputSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">; }, "strip", z.ZodTypeAny, { @@ -116,7 +116,7 @@ declare const ListProductsOutputSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]; }, { @@ -129,7 +129,7 @@ declare const ListProductsOutputSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]; }>; @@ -143,19 +143,19 @@ declare const listProductsContract: _orpc_contract.ContractProcedureBuilderWithI recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -166,7 +166,7 @@ declare const listProductsContract: _orpc_contract.ContractProcedureBuilderWithI currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -177,7 +177,7 @@ declare const listProductsContract: _orpc_contract.ContractProcedureBuilderWithI currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">; }, "strip", z.ZodTypeAny, { @@ -190,7 +190,7 @@ declare const listProductsContract: _orpc_contract.ContractProcedureBuilderWithI currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]; }, { @@ -203,7 +203,7 @@ declare const listProductsContract: _orpc_contract.ContractProcedureBuilderWithI currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]; }>, Record, Record>; @@ -216,19 +216,19 @@ declare const products: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -239,7 +239,7 @@ declare const products: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -250,7 +250,7 @@ declare const products: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">; }, "strip", z.ZodTypeAny, { @@ -263,7 +263,7 @@ declare const products: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]; }, { @@ -276,7 +276,7 @@ declare const products: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]; }>, Record, Record>; diff --git a/dist/contracts/products.d.ts b/dist/contracts/products.d.ts index 0f9836c..0861880 100644 --- a/dist/contracts/products.d.ts +++ b/dist/contracts/products.d.ts @@ -3,19 +3,19 @@ import { z } from 'zod'; declare const ProductPriceSchema: z.ZodObject<{ id: z.ZodString; - amountType: z.ZodEnum<["FIXED", "CUSTOM", "FREE"]>; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>; declare const ProductSchema: z.ZodObject<{ id: z.ZodString; @@ -24,19 +24,19 @@ declare const ProductSchema: z.ZodObject<{ recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -47,7 +47,7 @@ declare const ProductSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -58,7 +58,7 @@ declare const ProductSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>; declare const ListProductsOutputSchema: z.ZodObject<{ @@ -69,19 +69,19 @@ declare const ListProductsOutputSchema: z.ZodObject<{ recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -92,7 +92,7 @@ declare const ListProductsOutputSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -103,7 +103,7 @@ declare const ListProductsOutputSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">; }, "strip", z.ZodTypeAny, { @@ -116,7 +116,7 @@ declare const ListProductsOutputSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]; }, { @@ -129,7 +129,7 @@ declare const ListProductsOutputSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]; }>; @@ -143,19 +143,19 @@ declare const listProductsContract: _orpc_contract.ContractProcedureBuilderWithI recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -166,7 +166,7 @@ declare const listProductsContract: _orpc_contract.ContractProcedureBuilderWithI currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -177,7 +177,7 @@ declare const listProductsContract: _orpc_contract.ContractProcedureBuilderWithI currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">; }, "strip", z.ZodTypeAny, { @@ -190,7 +190,7 @@ declare const listProductsContract: _orpc_contract.ContractProcedureBuilderWithI currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]; }, { @@ -203,7 +203,7 @@ declare const listProductsContract: _orpc_contract.ContractProcedureBuilderWithI currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]; }>, Record, Record>; @@ -216,19 +216,19 @@ declare const products: { recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -239,7 +239,7 @@ declare const products: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -250,7 +250,7 @@ declare const products: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">; }, "strip", z.ZodTypeAny, { @@ -263,7 +263,7 @@ declare const products: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]; }, { @@ -276,7 +276,7 @@ declare const products: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]; }>, Record, Record>; diff --git a/dist/contracts/products.js b/dist/contracts/products.js index 968f602..1786421 100644 --- a/dist/contracts/products.js +++ b/dist/contracts/products.js @@ -4,7 +4,7 @@ import { ProductSchema, listProductsContract, products -} from "../chunk-Y6DXID65.js"; +} from "../chunk-YRMIQCBR.js"; import "../chunk-6M6LFZ3U.js"; export { ListProductsOutputSchema, diff --git a/dist/index.cjs b/dist/index.cjs index 52c24de..7e7b04c 100644 --- a/dist/index.cjs +++ b/dist/index.cjs @@ -70,7 +70,7 @@ var PaidInvoiceSchema = FixedAmountPendingInvoiceSchema.extend({ var import_zod3 = require("zod"); var CheckoutProductPriceSchema = import_zod3.z.object({ id: import_zod3.z.string(), - amountType: import_zod3.z.enum(["FIXED", "CUSTOM", "FREE"]), + amountType: import_zod3.z.enum(["FIXED", "CUSTOM"]), priceAmount: import_zod3.z.number().nullable(), currency: CurrencySchema }); @@ -397,7 +397,7 @@ var import_contract3 = require("@orpc/contract"); var import_zod7 = require("zod"); var ProductPriceSchema = import_zod7.z.object({ id: import_zod7.z.string(), - amountType: import_zod7.z.enum(["FIXED", "CUSTOM", "FREE"]), + amountType: import_zod7.z.enum(["FIXED", "CUSTOM"]), priceAmount: import_zod7.z.number().nullable(), currency: CurrencySchema }); diff --git a/dist/index.d.cts b/dist/index.d.cts index 7892f3c..aac36fa 100644 --- a/dist/index.d.cts +++ b/dist/index.d.cts @@ -53,19 +53,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -76,7 +76,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -87,7 +87,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -136,19 +136,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -159,7 +159,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -170,7 +170,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", zod.ZodTypeAny, { @@ -186,7 +186,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -197,7 +197,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -238,7 +238,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -262,7 +262,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -273,7 +273,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -314,7 +314,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -358,19 +358,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -381,7 +381,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -392,7 +392,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -405,19 +405,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -428,7 +428,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -439,7 +439,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: zod.ZodNullable; @@ -494,7 +494,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -535,7 +535,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -559,7 +559,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -600,7 +600,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -644,19 +644,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -667,7 +667,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -678,7 +678,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -691,19 +691,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -714,7 +714,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -725,7 +725,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -780,7 +780,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -821,7 +821,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -845,7 +845,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -886,7 +886,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -933,19 +933,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -956,7 +956,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -967,7 +967,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -1016,19 +1016,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -1039,7 +1039,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1050,7 +1050,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", zod.ZodTypeAny, { @@ -1066,7 +1066,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -1077,7 +1077,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -1118,7 +1118,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1142,7 +1142,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -1153,7 +1153,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -1194,7 +1194,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1238,19 +1238,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -1261,7 +1261,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1272,7 +1272,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -1285,19 +1285,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -1308,7 +1308,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1319,7 +1319,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -1374,7 +1374,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1415,7 +1415,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -1439,7 +1439,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1480,7 +1480,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -1524,19 +1524,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -1547,7 +1547,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1558,7 +1558,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -1571,19 +1571,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -1594,7 +1594,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1605,7 +1605,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -1660,7 +1660,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1701,7 +1701,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1725,7 +1725,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1766,7 +1766,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1813,19 +1813,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -1836,7 +1836,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1847,7 +1847,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -1868,19 +1868,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -1891,7 +1891,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1902,7 +1902,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: zod.ZodObject<{ @@ -1947,7 +1947,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -1958,7 +1958,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -1999,7 +1999,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2023,7 +2023,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -2034,7 +2034,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -2075,7 +2075,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2119,19 +2119,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -2142,7 +2142,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2153,7 +2153,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -2166,19 +2166,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -2189,7 +2189,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2200,7 +2200,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -2256,7 +2256,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2297,7 +2297,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -2321,7 +2321,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2362,7 +2362,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -2406,19 +2406,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -2429,7 +2429,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2440,7 +2440,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -2453,19 +2453,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -2476,7 +2476,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2487,7 +2487,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -2542,7 +2542,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2583,7 +2583,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2607,7 +2607,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2648,7 +2648,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2695,19 +2695,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -2718,7 +2718,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2729,7 +2729,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -2750,19 +2750,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -2773,7 +2773,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2784,7 +2784,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: zod.ZodObject<{ @@ -2829,7 +2829,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -2840,7 +2840,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -2881,7 +2881,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2905,7 +2905,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -2916,7 +2916,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -2957,7 +2957,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3001,19 +3001,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -3024,7 +3024,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3035,7 +3035,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -3048,19 +3048,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -3071,7 +3071,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3082,7 +3082,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -3138,7 +3138,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3179,7 +3179,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -3203,7 +3203,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3244,7 +3244,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -3288,19 +3288,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -3311,7 +3311,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3322,7 +3322,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -3335,19 +3335,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -3358,7 +3358,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3369,7 +3369,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -3425,7 +3425,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3466,7 +3466,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3490,7 +3490,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3531,7 +3531,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3575,19 +3575,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -3598,7 +3598,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3609,7 +3609,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -3622,19 +3622,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -3645,7 +3645,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3656,7 +3656,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -3711,7 +3711,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3752,7 +3752,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3776,7 +3776,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3817,7 +3817,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3915,19 +3915,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -3938,7 +3938,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3949,7 +3949,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -3998,19 +3998,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -4021,7 +4021,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4032,7 +4032,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", zod.ZodTypeAny, { @@ -4048,7 +4048,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -4059,7 +4059,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4100,7 +4100,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4124,7 +4124,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -4135,7 +4135,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4176,7 +4176,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4220,19 +4220,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -4243,7 +4243,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4254,7 +4254,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -4267,19 +4267,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -4290,7 +4290,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4301,7 +4301,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: zod.ZodNullable; @@ -4356,7 +4356,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4397,7 +4397,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -4421,7 +4421,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4462,7 +4462,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -4506,19 +4506,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -4529,7 +4529,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4540,7 +4540,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -4553,19 +4553,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -4576,7 +4576,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4587,7 +4587,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -4642,7 +4642,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4683,7 +4683,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4707,7 +4707,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4748,7 +4748,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4795,19 +4795,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -4818,7 +4818,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4829,7 +4829,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -4878,19 +4878,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -4901,7 +4901,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4912,7 +4912,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", zod.ZodTypeAny, { @@ -4928,7 +4928,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -4939,7 +4939,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4980,7 +4980,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5004,7 +5004,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -5015,7 +5015,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -5056,7 +5056,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5100,19 +5100,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -5123,7 +5123,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5134,7 +5134,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -5147,19 +5147,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -5170,7 +5170,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5181,7 +5181,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -5236,7 +5236,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5277,7 +5277,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -5301,7 +5301,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5342,7 +5342,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -5386,19 +5386,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -5409,7 +5409,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5420,7 +5420,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -5433,19 +5433,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -5456,7 +5456,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5467,7 +5467,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -5522,7 +5522,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5563,7 +5563,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5587,7 +5587,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5628,7 +5628,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5675,19 +5675,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -5698,7 +5698,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5709,7 +5709,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -5730,19 +5730,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -5753,7 +5753,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5764,7 +5764,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: zod.ZodObject<{ @@ -5809,7 +5809,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -5820,7 +5820,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -5861,7 +5861,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5885,7 +5885,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -5896,7 +5896,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -5937,7 +5937,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5981,19 +5981,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -6004,7 +6004,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6015,7 +6015,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -6028,19 +6028,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -6051,7 +6051,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6062,7 +6062,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -6118,7 +6118,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6159,7 +6159,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -6183,7 +6183,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6224,7 +6224,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -6268,19 +6268,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -6291,7 +6291,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6302,7 +6302,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -6315,19 +6315,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -6338,7 +6338,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6349,7 +6349,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -6404,7 +6404,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6445,7 +6445,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6469,7 +6469,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6510,7 +6510,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6557,19 +6557,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -6580,7 +6580,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6591,7 +6591,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -6612,19 +6612,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -6635,7 +6635,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6646,7 +6646,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: zod.ZodObject<{ @@ -6691,7 +6691,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -6702,7 +6702,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -6743,7 +6743,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6767,7 +6767,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -6778,7 +6778,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -6819,7 +6819,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6863,19 +6863,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -6886,7 +6886,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6897,7 +6897,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -6910,19 +6910,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -6933,7 +6933,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6944,7 +6944,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -7000,7 +7000,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7041,7 +7041,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -7065,7 +7065,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7106,7 +7106,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -7150,19 +7150,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -7173,7 +7173,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7184,7 +7184,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -7197,19 +7197,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -7220,7 +7220,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7231,7 +7231,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -7287,7 +7287,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7328,7 +7328,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7352,7 +7352,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7393,7 +7393,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7437,19 +7437,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -7460,7 +7460,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7471,7 +7471,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -7484,19 +7484,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -7507,7 +7507,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7518,7 +7518,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -7573,7 +7573,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7614,7 +7614,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7638,7 +7638,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7679,7 +7679,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7774,19 +7774,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -7797,7 +7797,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7808,7 +7808,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -7857,19 +7857,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -7880,7 +7880,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7891,7 +7891,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", zod.ZodTypeAny, { @@ -7907,7 +7907,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -7918,7 +7918,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -7959,7 +7959,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7983,7 +7983,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -7994,7 +7994,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -8035,7 +8035,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8079,19 +8079,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -8102,7 +8102,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8113,7 +8113,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -8126,19 +8126,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -8149,7 +8149,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8160,7 +8160,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: zod.ZodNullable; @@ -8215,7 +8215,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -8256,7 +8256,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -8280,7 +8280,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -8321,7 +8321,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -8365,19 +8365,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -8388,7 +8388,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8399,7 +8399,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -8412,19 +8412,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -8435,7 +8435,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8446,7 +8446,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -8501,7 +8501,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -8542,7 +8542,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8566,7 +8566,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -8607,7 +8607,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8654,19 +8654,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -8677,7 +8677,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8688,7 +8688,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -8737,19 +8737,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -8760,7 +8760,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8771,7 +8771,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", zod.ZodTypeAny, { @@ -8787,7 +8787,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -8798,7 +8798,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -8839,7 +8839,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8863,7 +8863,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -8874,7 +8874,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -8915,7 +8915,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8959,19 +8959,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -8982,7 +8982,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8993,7 +8993,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -9006,19 +9006,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -9029,7 +9029,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9040,7 +9040,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -9095,7 +9095,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -9136,7 +9136,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -9160,7 +9160,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -9201,7 +9201,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -9245,19 +9245,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -9268,7 +9268,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9279,7 +9279,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -9292,19 +9292,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -9315,7 +9315,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9326,7 +9326,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -9381,7 +9381,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -9422,7 +9422,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9446,7 +9446,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -9487,7 +9487,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9534,19 +9534,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -9557,7 +9557,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9568,7 +9568,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -9589,19 +9589,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -9612,7 +9612,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9623,7 +9623,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: zod.ZodObject<{ @@ -9668,7 +9668,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -9679,7 +9679,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -9720,7 +9720,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9744,7 +9744,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -9755,7 +9755,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -9796,7 +9796,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9840,19 +9840,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -9863,7 +9863,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9874,7 +9874,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -9887,19 +9887,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -9910,7 +9910,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9921,7 +9921,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -9977,7 +9977,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10018,7 +10018,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -10042,7 +10042,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10083,7 +10083,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -10127,19 +10127,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -10150,7 +10150,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10161,7 +10161,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -10174,19 +10174,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -10197,7 +10197,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10208,7 +10208,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -10263,7 +10263,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10304,7 +10304,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10328,7 +10328,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10369,7 +10369,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10416,19 +10416,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -10439,7 +10439,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10450,7 +10450,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -10471,19 +10471,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -10494,7 +10494,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10505,7 +10505,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: zod.ZodObject<{ @@ -10550,7 +10550,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -10561,7 +10561,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -10602,7 +10602,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10626,7 +10626,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -10637,7 +10637,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -10678,7 +10678,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10722,19 +10722,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -10745,7 +10745,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10756,7 +10756,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -10769,19 +10769,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -10792,7 +10792,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10803,7 +10803,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -10859,7 +10859,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10900,7 +10900,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -10924,7 +10924,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10965,7 +10965,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -11009,19 +11009,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -11032,7 +11032,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11043,7 +11043,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -11056,19 +11056,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -11079,7 +11079,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11090,7 +11090,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -11146,7 +11146,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11187,7 +11187,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11211,7 +11211,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11252,7 +11252,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11296,19 +11296,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -11319,7 +11319,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11330,7 +11330,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -11343,19 +11343,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -11366,7 +11366,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11377,7 +11377,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -11432,7 +11432,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11473,7 +11473,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11497,7 +11497,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11538,7 +11538,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11607,19 +11607,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -11630,7 +11630,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11641,7 +11641,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -11690,19 +11690,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -11713,7 +11713,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11724,7 +11724,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", zod.ZodTypeAny, { @@ -11740,7 +11740,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -11751,7 +11751,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -11792,7 +11792,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11816,7 +11816,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -11827,7 +11827,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -11868,7 +11868,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11912,19 +11912,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -11935,7 +11935,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11946,7 +11946,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -11959,19 +11959,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -11982,7 +11982,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11993,7 +11993,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: zod.ZodNullable; @@ -12048,7 +12048,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12089,7 +12089,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -12113,7 +12113,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12154,7 +12154,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -12198,19 +12198,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -12221,7 +12221,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12232,7 +12232,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -12245,19 +12245,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -12268,7 +12268,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12279,7 +12279,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -12334,7 +12334,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12375,7 +12375,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12399,7 +12399,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12440,7 +12440,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12487,19 +12487,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -12510,7 +12510,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12521,7 +12521,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -12570,19 +12570,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -12593,7 +12593,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12604,7 +12604,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", zod.ZodTypeAny, { @@ -12620,7 +12620,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -12631,7 +12631,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -12672,7 +12672,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12696,7 +12696,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -12707,7 +12707,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -12748,7 +12748,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12792,19 +12792,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -12815,7 +12815,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12826,7 +12826,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -12839,19 +12839,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -12862,7 +12862,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12873,7 +12873,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -12928,7 +12928,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12969,7 +12969,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -12993,7 +12993,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13034,7 +13034,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -13078,19 +13078,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -13101,7 +13101,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13112,7 +13112,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -13125,19 +13125,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -13148,7 +13148,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13159,7 +13159,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -13214,7 +13214,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13255,7 +13255,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13279,7 +13279,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13320,7 +13320,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13367,19 +13367,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -13390,7 +13390,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13401,7 +13401,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -13422,19 +13422,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -13445,7 +13445,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13456,7 +13456,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: zod.ZodObject<{ @@ -13501,7 +13501,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -13512,7 +13512,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -13553,7 +13553,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13577,7 +13577,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -13588,7 +13588,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -13629,7 +13629,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13673,19 +13673,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -13696,7 +13696,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13707,7 +13707,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -13720,19 +13720,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -13743,7 +13743,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13754,7 +13754,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -13810,7 +13810,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13851,7 +13851,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -13875,7 +13875,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13916,7 +13916,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -13960,19 +13960,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -13983,7 +13983,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13994,7 +13994,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -14007,19 +14007,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -14030,7 +14030,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14041,7 +14041,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -14096,7 +14096,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14137,7 +14137,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -14161,7 +14161,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14202,7 +14202,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -14249,19 +14249,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -14272,7 +14272,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14283,7 +14283,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -14304,19 +14304,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -14327,7 +14327,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14338,7 +14338,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: zod.ZodObject<{ @@ -14383,7 +14383,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -14394,7 +14394,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -14435,7 +14435,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -14459,7 +14459,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -14470,7 +14470,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -14511,7 +14511,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -14555,19 +14555,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -14578,7 +14578,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14589,7 +14589,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -14602,19 +14602,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -14625,7 +14625,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14636,7 +14636,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -14692,7 +14692,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14733,7 +14733,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -14757,7 +14757,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14798,7 +14798,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -14842,19 +14842,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -14865,7 +14865,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14876,7 +14876,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -14889,19 +14889,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -14912,7 +14912,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14923,7 +14923,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -14979,7 +14979,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15020,7 +15020,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15044,7 +15044,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15085,7 +15085,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15129,19 +15129,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -15152,7 +15152,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15163,7 +15163,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -15176,19 +15176,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -15199,7 +15199,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15210,7 +15210,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -15265,7 +15265,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15306,7 +15306,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15330,7 +15330,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15371,7 +15371,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15539,19 +15539,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -15562,7 +15562,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15573,7 +15573,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">; }, "strip", zod.ZodTypeAny, { @@ -15586,7 +15586,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]; }, { @@ -15599,7 +15599,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]; }>, Record, Record>; diff --git a/dist/index.d.ts b/dist/index.d.ts index 98f32e8..8faa17c 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -53,19 +53,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -76,7 +76,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -87,7 +87,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -136,19 +136,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -159,7 +159,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -170,7 +170,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", zod.ZodTypeAny, { @@ -186,7 +186,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -197,7 +197,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -238,7 +238,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -262,7 +262,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -273,7 +273,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -314,7 +314,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -358,19 +358,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -381,7 +381,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -392,7 +392,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -405,19 +405,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -428,7 +428,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -439,7 +439,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: zod.ZodNullable; @@ -494,7 +494,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -535,7 +535,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -559,7 +559,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -600,7 +600,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -644,19 +644,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -667,7 +667,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -678,7 +678,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -691,19 +691,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -714,7 +714,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -725,7 +725,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -780,7 +780,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -821,7 +821,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -845,7 +845,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -886,7 +886,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -933,19 +933,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -956,7 +956,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -967,7 +967,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -1016,19 +1016,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -1039,7 +1039,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1050,7 +1050,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", zod.ZodTypeAny, { @@ -1066,7 +1066,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -1077,7 +1077,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -1118,7 +1118,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1142,7 +1142,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -1153,7 +1153,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -1194,7 +1194,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1238,19 +1238,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -1261,7 +1261,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1272,7 +1272,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -1285,19 +1285,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -1308,7 +1308,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1319,7 +1319,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -1374,7 +1374,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1415,7 +1415,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -1439,7 +1439,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1480,7 +1480,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -1524,19 +1524,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -1547,7 +1547,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1558,7 +1558,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -1571,19 +1571,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -1594,7 +1594,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1605,7 +1605,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -1660,7 +1660,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1701,7 +1701,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1725,7 +1725,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1766,7 +1766,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1813,19 +1813,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -1836,7 +1836,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1847,7 +1847,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -1868,19 +1868,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -1891,7 +1891,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1902,7 +1902,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: zod.ZodObject<{ @@ -1947,7 +1947,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -1958,7 +1958,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -1999,7 +1999,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2023,7 +2023,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -2034,7 +2034,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -2075,7 +2075,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2119,19 +2119,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -2142,7 +2142,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2153,7 +2153,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -2166,19 +2166,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -2189,7 +2189,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2200,7 +2200,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -2256,7 +2256,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2297,7 +2297,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -2321,7 +2321,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2362,7 +2362,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -2406,19 +2406,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -2429,7 +2429,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2440,7 +2440,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -2453,19 +2453,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -2476,7 +2476,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2487,7 +2487,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -2542,7 +2542,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2583,7 +2583,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2607,7 +2607,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2648,7 +2648,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2695,19 +2695,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -2718,7 +2718,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2729,7 +2729,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -2750,19 +2750,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -2773,7 +2773,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2784,7 +2784,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: zod.ZodObject<{ @@ -2829,7 +2829,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -2840,7 +2840,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -2881,7 +2881,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2905,7 +2905,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -2916,7 +2916,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -2957,7 +2957,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3001,19 +3001,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -3024,7 +3024,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3035,7 +3035,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -3048,19 +3048,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -3071,7 +3071,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3082,7 +3082,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -3138,7 +3138,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3179,7 +3179,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -3203,7 +3203,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3244,7 +3244,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -3288,19 +3288,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -3311,7 +3311,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3322,7 +3322,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -3335,19 +3335,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -3358,7 +3358,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3369,7 +3369,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -3425,7 +3425,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3466,7 +3466,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3490,7 +3490,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3531,7 +3531,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3575,19 +3575,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -3598,7 +3598,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3609,7 +3609,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -3622,19 +3622,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -3645,7 +3645,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3656,7 +3656,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -3711,7 +3711,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3752,7 +3752,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3776,7 +3776,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3817,7 +3817,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3915,19 +3915,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -3938,7 +3938,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3949,7 +3949,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -3998,19 +3998,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -4021,7 +4021,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4032,7 +4032,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", zod.ZodTypeAny, { @@ -4048,7 +4048,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -4059,7 +4059,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4100,7 +4100,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4124,7 +4124,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -4135,7 +4135,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4176,7 +4176,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4220,19 +4220,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -4243,7 +4243,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4254,7 +4254,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -4267,19 +4267,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -4290,7 +4290,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4301,7 +4301,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: zod.ZodNullable; @@ -4356,7 +4356,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4397,7 +4397,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -4421,7 +4421,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4462,7 +4462,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -4506,19 +4506,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -4529,7 +4529,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4540,7 +4540,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -4553,19 +4553,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -4576,7 +4576,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4587,7 +4587,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -4642,7 +4642,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4683,7 +4683,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4707,7 +4707,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4748,7 +4748,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4795,19 +4795,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -4818,7 +4818,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4829,7 +4829,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -4878,19 +4878,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -4901,7 +4901,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4912,7 +4912,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", zod.ZodTypeAny, { @@ -4928,7 +4928,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -4939,7 +4939,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4980,7 +4980,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5004,7 +5004,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -5015,7 +5015,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -5056,7 +5056,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5100,19 +5100,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -5123,7 +5123,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5134,7 +5134,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -5147,19 +5147,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -5170,7 +5170,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5181,7 +5181,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -5236,7 +5236,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5277,7 +5277,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -5301,7 +5301,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5342,7 +5342,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -5386,19 +5386,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -5409,7 +5409,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5420,7 +5420,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -5433,19 +5433,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -5456,7 +5456,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5467,7 +5467,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -5522,7 +5522,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5563,7 +5563,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5587,7 +5587,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5628,7 +5628,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5675,19 +5675,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -5698,7 +5698,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5709,7 +5709,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -5730,19 +5730,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -5753,7 +5753,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5764,7 +5764,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: zod.ZodObject<{ @@ -5809,7 +5809,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -5820,7 +5820,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -5861,7 +5861,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5885,7 +5885,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -5896,7 +5896,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -5937,7 +5937,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5981,19 +5981,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -6004,7 +6004,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6015,7 +6015,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -6028,19 +6028,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -6051,7 +6051,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6062,7 +6062,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -6118,7 +6118,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6159,7 +6159,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -6183,7 +6183,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6224,7 +6224,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -6268,19 +6268,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -6291,7 +6291,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6302,7 +6302,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -6315,19 +6315,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -6338,7 +6338,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6349,7 +6349,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -6404,7 +6404,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6445,7 +6445,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6469,7 +6469,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6510,7 +6510,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6557,19 +6557,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -6580,7 +6580,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6591,7 +6591,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -6612,19 +6612,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -6635,7 +6635,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6646,7 +6646,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: zod.ZodObject<{ @@ -6691,7 +6691,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -6702,7 +6702,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -6743,7 +6743,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6767,7 +6767,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -6778,7 +6778,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -6819,7 +6819,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6863,19 +6863,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -6886,7 +6886,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6897,7 +6897,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -6910,19 +6910,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -6933,7 +6933,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6944,7 +6944,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -7000,7 +7000,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7041,7 +7041,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -7065,7 +7065,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7106,7 +7106,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -7150,19 +7150,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -7173,7 +7173,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7184,7 +7184,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -7197,19 +7197,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -7220,7 +7220,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7231,7 +7231,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -7287,7 +7287,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7328,7 +7328,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7352,7 +7352,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7393,7 +7393,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7437,19 +7437,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -7460,7 +7460,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7471,7 +7471,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -7484,19 +7484,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -7507,7 +7507,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7518,7 +7518,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -7573,7 +7573,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7614,7 +7614,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7638,7 +7638,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7679,7 +7679,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7774,19 +7774,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -7797,7 +7797,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7808,7 +7808,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -7857,19 +7857,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -7880,7 +7880,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7891,7 +7891,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", zod.ZodTypeAny, { @@ -7907,7 +7907,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -7918,7 +7918,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -7959,7 +7959,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7983,7 +7983,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -7994,7 +7994,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -8035,7 +8035,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8079,19 +8079,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -8102,7 +8102,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8113,7 +8113,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -8126,19 +8126,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -8149,7 +8149,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8160,7 +8160,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: zod.ZodNullable; @@ -8215,7 +8215,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -8256,7 +8256,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -8280,7 +8280,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -8321,7 +8321,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -8365,19 +8365,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -8388,7 +8388,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8399,7 +8399,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -8412,19 +8412,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -8435,7 +8435,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8446,7 +8446,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -8501,7 +8501,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -8542,7 +8542,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8566,7 +8566,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -8607,7 +8607,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8654,19 +8654,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -8677,7 +8677,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8688,7 +8688,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -8737,19 +8737,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -8760,7 +8760,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8771,7 +8771,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", zod.ZodTypeAny, { @@ -8787,7 +8787,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -8798,7 +8798,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -8839,7 +8839,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8863,7 +8863,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -8874,7 +8874,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -8915,7 +8915,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -8959,19 +8959,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -8982,7 +8982,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -8993,7 +8993,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -9006,19 +9006,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -9029,7 +9029,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9040,7 +9040,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -9095,7 +9095,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -9136,7 +9136,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -9160,7 +9160,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -9201,7 +9201,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -9245,19 +9245,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -9268,7 +9268,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9279,7 +9279,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -9292,19 +9292,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -9315,7 +9315,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9326,7 +9326,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -9381,7 +9381,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -9422,7 +9422,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9446,7 +9446,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -9487,7 +9487,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9534,19 +9534,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -9557,7 +9557,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9568,7 +9568,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -9589,19 +9589,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -9612,7 +9612,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9623,7 +9623,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: zod.ZodObject<{ @@ -9668,7 +9668,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -9679,7 +9679,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -9720,7 +9720,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9744,7 +9744,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -9755,7 +9755,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -9796,7 +9796,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -9840,19 +9840,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -9863,7 +9863,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9874,7 +9874,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -9887,19 +9887,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -9910,7 +9910,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -9921,7 +9921,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -9977,7 +9977,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10018,7 +10018,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -10042,7 +10042,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10083,7 +10083,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -10127,19 +10127,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -10150,7 +10150,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10161,7 +10161,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -10174,19 +10174,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -10197,7 +10197,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10208,7 +10208,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -10263,7 +10263,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10304,7 +10304,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10328,7 +10328,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10369,7 +10369,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10416,19 +10416,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -10439,7 +10439,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10450,7 +10450,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -10471,19 +10471,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -10494,7 +10494,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10505,7 +10505,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: zod.ZodObject<{ @@ -10550,7 +10550,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -10561,7 +10561,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -10602,7 +10602,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10626,7 +10626,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -10637,7 +10637,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -10678,7 +10678,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -10722,19 +10722,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -10745,7 +10745,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10756,7 +10756,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -10769,19 +10769,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -10792,7 +10792,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -10803,7 +10803,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -10859,7 +10859,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10900,7 +10900,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -10924,7 +10924,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -10965,7 +10965,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -11009,19 +11009,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -11032,7 +11032,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11043,7 +11043,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -11056,19 +11056,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -11079,7 +11079,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11090,7 +11090,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -11146,7 +11146,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11187,7 +11187,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11211,7 +11211,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11252,7 +11252,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11296,19 +11296,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -11319,7 +11319,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11330,7 +11330,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -11343,19 +11343,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -11366,7 +11366,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11377,7 +11377,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -11432,7 +11432,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11473,7 +11473,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11497,7 +11497,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -11538,7 +11538,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11607,19 +11607,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -11630,7 +11630,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11641,7 +11641,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -11690,19 +11690,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -11713,7 +11713,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11724,7 +11724,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", zod.ZodTypeAny, { @@ -11740,7 +11740,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -11751,7 +11751,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -11792,7 +11792,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11816,7 +11816,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -11827,7 +11827,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -11868,7 +11868,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -11912,19 +11912,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -11935,7 +11935,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11946,7 +11946,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -11959,19 +11959,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -11982,7 +11982,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -11993,7 +11993,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: zod.ZodNullable; @@ -12048,7 +12048,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12089,7 +12089,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -12113,7 +12113,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12154,7 +12154,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -12198,19 +12198,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -12221,7 +12221,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12232,7 +12232,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -12245,19 +12245,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -12268,7 +12268,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12279,7 +12279,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -12334,7 +12334,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12375,7 +12375,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12399,7 +12399,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12440,7 +12440,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12487,19 +12487,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -12510,7 +12510,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12521,7 +12521,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -12570,19 +12570,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -12593,7 +12593,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12604,7 +12604,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", zod.ZodTypeAny, { @@ -12620,7 +12620,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -12631,7 +12631,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -12672,7 +12672,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12696,7 +12696,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -12707,7 +12707,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -12748,7 +12748,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -12792,19 +12792,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -12815,7 +12815,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12826,7 +12826,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -12839,19 +12839,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -12862,7 +12862,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -12873,7 +12873,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -12928,7 +12928,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -12969,7 +12969,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -12993,7 +12993,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13034,7 +13034,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -13078,19 +13078,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -13101,7 +13101,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13112,7 +13112,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -13125,19 +13125,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -13148,7 +13148,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13159,7 +13159,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -13214,7 +13214,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13255,7 +13255,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13279,7 +13279,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13320,7 +13320,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13367,19 +13367,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -13390,7 +13390,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13401,7 +13401,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -13422,19 +13422,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -13445,7 +13445,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13456,7 +13456,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: zod.ZodObject<{ @@ -13501,7 +13501,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -13512,7 +13512,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -13553,7 +13553,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13577,7 +13577,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -13588,7 +13588,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -13629,7 +13629,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -13673,19 +13673,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -13696,7 +13696,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13707,7 +13707,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -13720,19 +13720,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -13743,7 +13743,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13754,7 +13754,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -13810,7 +13810,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13851,7 +13851,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -13875,7 +13875,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -13916,7 +13916,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -13960,19 +13960,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -13983,7 +13983,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -13994,7 +13994,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -14007,19 +14007,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -14030,7 +14030,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14041,7 +14041,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -14096,7 +14096,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14137,7 +14137,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -14161,7 +14161,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14202,7 +14202,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -14249,19 +14249,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -14272,7 +14272,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14283,7 +14283,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -14304,19 +14304,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -14327,7 +14327,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14338,7 +14338,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: zod.ZodObject<{ @@ -14383,7 +14383,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -14394,7 +14394,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -14435,7 +14435,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -14459,7 +14459,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -14470,7 +14470,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -14511,7 +14511,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -14555,19 +14555,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -14578,7 +14578,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14589,7 +14589,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -14602,19 +14602,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -14625,7 +14625,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14636,7 +14636,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: zod.ZodNullable; @@ -14692,7 +14692,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14733,7 +14733,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -14757,7 +14757,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -14798,7 +14798,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -14842,19 +14842,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -14865,7 +14865,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14876,7 +14876,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -14889,19 +14889,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -14912,7 +14912,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -14923,7 +14923,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -14979,7 +14979,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15020,7 +15020,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15044,7 +15044,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15085,7 +15085,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15129,19 +15129,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -15152,7 +15152,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15163,7 +15163,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: zod.ZodNullable; @@ -15176,19 +15176,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -15199,7 +15199,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15210,7 +15210,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: zod.ZodNullable; @@ -15265,7 +15265,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15306,7 +15306,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15330,7 +15330,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -15371,7 +15371,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -15539,19 +15539,19 @@ declare const contract: { recurringInterval: zod.ZodNullable>; prices: zod.ZodArray; + amountType: zod.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: zod.ZodNullable; currency: zod.ZodEnum<["USD", "SAT"]>; }, "strip", zod.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", zod.ZodTypeAny, { name: string; @@ -15562,7 +15562,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -15573,7 +15573,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">; }, "strip", zod.ZodTypeAny, { @@ -15586,7 +15586,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]; }, { @@ -15599,7 +15599,7 @@ declare const contract: { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]; }>, Record, Record>; diff --git a/dist/index.js b/dist/index.js index e66bccd..0c1fb68 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,6 +1,12 @@ +import { + MAX_KEY_COUNT, + MAX_KEY_LENGTH, + MAX_METADATA_SIZE_BYTES, + validateMetadata +} from "./chunk-DVDEDUJU.js"; import { checkout -} from "./chunk-6XWZHZXK.js"; +} from "./chunk-4AJPTMW2.js"; import { onboarding } from "./chunk-RZPQSVO3.js"; @@ -10,19 +16,13 @@ import { ProductPriceSchema, ProductSchema, products -} from "./chunk-Y6DXID65.js"; -import { - MAX_KEY_COUNT, - MAX_KEY_LENGTH, - MAX_METADATA_SIZE_BYTES, - validateMetadata -} from "./chunk-DVDEDUJU.js"; +} from "./chunk-YRMIQCBR.js"; import "./chunk-OJKHC5SH.js"; import { CheckoutSchema -} from "./chunk-7EZSTHMJ.js"; +} from "./chunk-CD2LZX3A.js"; +import "./chunk-T6X3KMH6.js"; import "./chunk-TGG53ETU.js"; -import "./chunk-CD4U22RQ.js"; import { CurrencySchema } from "./chunk-6M6LFZ3U.js"; diff --git a/dist/schemas/checkout.cjs b/dist/schemas/checkout.cjs index 491a2bf..680ba6b 100644 --- a/dist/schemas/checkout.cjs +++ b/dist/schemas/checkout.cjs @@ -60,7 +60,7 @@ var PaidInvoiceSchema = FixedAmountPendingInvoiceSchema.extend({ var import_zod3 = require("zod"); var CheckoutProductPriceSchema = import_zod3.z.object({ id: import_zod3.z.string(), - amountType: import_zod3.z.enum(["FIXED", "CUSTOM", "FREE"]), + amountType: import_zod3.z.enum(["FIXED", "CUSTOM"]), priceAmount: import_zod3.z.number().nullable(), currency: CurrencySchema }); diff --git a/dist/schemas/checkout.d.cts b/dist/schemas/checkout.d.cts index 6c034ac..95f5155 100644 --- a/dist/schemas/checkout.d.cts +++ b/dist/schemas/checkout.d.cts @@ -33,19 +33,19 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -56,7 +56,7 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -67,7 +67,7 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -80,19 +80,19 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -103,7 +103,7 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -114,7 +114,7 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -169,7 +169,7 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -210,7 +210,7 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -234,7 +234,7 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -275,7 +275,7 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -323,19 +323,19 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -346,7 +346,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -357,7 +357,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -406,19 +406,19 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -429,7 +429,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -440,7 +440,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -456,7 +456,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -467,7 +467,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -508,7 +508,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -532,7 +532,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -543,7 +543,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -584,7 +584,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -628,19 +628,19 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -651,7 +651,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -662,7 +662,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -675,19 +675,19 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -698,7 +698,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -709,7 +709,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -764,7 +764,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -805,7 +805,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -829,7 +829,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -870,7 +870,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -914,19 +914,19 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -937,7 +937,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -948,7 +948,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -961,19 +961,19 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -984,7 +984,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -995,7 +995,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -1050,7 +1050,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1091,7 +1091,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1115,7 +1115,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1156,7 +1156,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1204,19 +1204,19 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1227,7 +1227,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1238,7 +1238,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -1287,19 +1287,19 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1310,7 +1310,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1321,7 +1321,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -1337,7 +1337,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -1348,7 +1348,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -1389,7 +1389,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1413,7 +1413,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -1424,7 +1424,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -1465,7 +1465,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1509,19 +1509,19 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1532,7 +1532,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1543,7 +1543,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -1556,19 +1556,19 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1579,7 +1579,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1590,7 +1590,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -1645,7 +1645,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1686,7 +1686,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -1710,7 +1710,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1751,7 +1751,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -1795,19 +1795,19 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1818,7 +1818,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1829,7 +1829,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -1842,19 +1842,19 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1865,7 +1865,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1876,7 +1876,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -1931,7 +1931,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1972,7 +1972,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1996,7 +1996,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2037,7 +2037,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2085,19 +2085,19 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2108,7 +2108,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2119,7 +2119,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -2140,19 +2140,19 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2163,7 +2163,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2174,7 +2174,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -2219,7 +2219,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -2230,7 +2230,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -2271,7 +2271,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2295,7 +2295,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -2306,7 +2306,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -2347,7 +2347,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2391,19 +2391,19 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2414,7 +2414,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2425,7 +2425,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -2438,19 +2438,19 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2461,7 +2461,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2472,7 +2472,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -2528,7 +2528,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2569,7 +2569,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -2593,7 +2593,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2634,7 +2634,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -2678,19 +2678,19 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2701,7 +2701,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2712,7 +2712,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -2725,19 +2725,19 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2748,7 +2748,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2759,7 +2759,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -2814,7 +2814,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2855,7 +2855,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2879,7 +2879,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2920,7 +2920,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2968,19 +2968,19 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2991,7 +2991,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3002,7 +3002,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -3023,19 +3023,19 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3046,7 +3046,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3057,7 +3057,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -3102,7 +3102,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -3113,7 +3113,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -3154,7 +3154,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3178,7 +3178,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -3189,7 +3189,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -3230,7 +3230,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3274,19 +3274,19 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3297,7 +3297,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3308,7 +3308,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -3321,19 +3321,19 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3344,7 +3344,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3355,7 +3355,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -3411,7 +3411,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3452,7 +3452,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -3476,7 +3476,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3517,7 +3517,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -3561,19 +3561,19 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3584,7 +3584,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3595,7 +3595,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -3608,19 +3608,19 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3631,7 +3631,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3642,7 +3642,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -3698,7 +3698,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3739,7 +3739,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3763,7 +3763,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3804,7 +3804,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3852,19 +3852,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3875,7 +3875,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3886,7 +3886,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -3935,19 +3935,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3958,7 +3958,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3969,7 +3969,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -3985,7 +3985,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -3996,7 +3996,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4037,7 +4037,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4061,7 +4061,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -4072,7 +4072,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4113,7 +4113,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4157,19 +4157,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4180,7 +4180,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4191,7 +4191,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -4204,19 +4204,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4227,7 +4227,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4238,7 +4238,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -4293,7 +4293,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4334,7 +4334,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -4358,7 +4358,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4399,7 +4399,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -4443,19 +4443,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4466,7 +4466,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4477,7 +4477,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -4490,19 +4490,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4513,7 +4513,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4524,7 +4524,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -4579,7 +4579,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4620,7 +4620,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4644,7 +4644,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4685,7 +4685,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4732,19 +4732,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4755,7 +4755,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4766,7 +4766,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -4815,19 +4815,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4838,7 +4838,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4849,7 +4849,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -4865,7 +4865,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -4876,7 +4876,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4917,7 +4917,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4941,7 +4941,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -4952,7 +4952,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4993,7 +4993,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5037,19 +5037,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5060,7 +5060,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5071,7 +5071,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -5084,19 +5084,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5107,7 +5107,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5118,7 +5118,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -5173,7 +5173,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5214,7 +5214,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -5238,7 +5238,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5279,7 +5279,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -5323,19 +5323,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5346,7 +5346,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5357,7 +5357,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -5370,19 +5370,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5393,7 +5393,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5404,7 +5404,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -5459,7 +5459,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5500,7 +5500,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5524,7 +5524,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5565,7 +5565,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5612,19 +5612,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5635,7 +5635,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5646,7 +5646,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -5667,19 +5667,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5690,7 +5690,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5701,7 +5701,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -5746,7 +5746,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -5757,7 +5757,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -5798,7 +5798,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5822,7 +5822,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -5833,7 +5833,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -5874,7 +5874,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5918,19 +5918,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5941,7 +5941,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5952,7 +5952,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -5965,19 +5965,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5988,7 +5988,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5999,7 +5999,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -6055,7 +6055,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6096,7 +6096,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -6120,7 +6120,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6161,7 +6161,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -6205,19 +6205,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6228,7 +6228,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6239,7 +6239,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -6252,19 +6252,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6275,7 +6275,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6286,7 +6286,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -6341,7 +6341,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6382,7 +6382,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6406,7 +6406,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6447,7 +6447,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6494,19 +6494,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6517,7 +6517,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6528,7 +6528,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -6549,19 +6549,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6572,7 +6572,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6583,7 +6583,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -6628,7 +6628,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -6639,7 +6639,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -6680,7 +6680,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6704,7 +6704,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -6715,7 +6715,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -6756,7 +6756,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6800,19 +6800,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6823,7 +6823,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6834,7 +6834,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -6847,19 +6847,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6870,7 +6870,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6881,7 +6881,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -6937,7 +6937,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6978,7 +6978,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -7002,7 +7002,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7043,7 +7043,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -7087,19 +7087,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7110,7 +7110,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7121,7 +7121,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -7134,19 +7134,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7157,7 +7157,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7168,7 +7168,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -7224,7 +7224,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7265,7 +7265,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7289,7 +7289,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7330,7 +7330,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7374,19 +7374,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7397,7 +7397,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7408,7 +7408,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -7421,19 +7421,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7444,7 +7444,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7455,7 +7455,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -7510,7 +7510,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7551,7 +7551,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7575,7 +7575,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7616,7 +7616,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; diff --git a/dist/schemas/checkout.d.ts b/dist/schemas/checkout.d.ts index 6c034ac..95f5155 100644 --- a/dist/schemas/checkout.d.ts +++ b/dist/schemas/checkout.d.ts @@ -33,19 +33,19 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -56,7 +56,7 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -67,7 +67,7 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -80,19 +80,19 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -103,7 +103,7 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -114,7 +114,7 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -169,7 +169,7 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -210,7 +210,7 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -234,7 +234,7 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -275,7 +275,7 @@ declare const ExpiredCheckoutSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -323,19 +323,19 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -346,7 +346,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -357,7 +357,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -406,19 +406,19 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -429,7 +429,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -440,7 +440,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -456,7 +456,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -467,7 +467,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -508,7 +508,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -532,7 +532,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -543,7 +543,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -584,7 +584,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -628,19 +628,19 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -651,7 +651,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -662,7 +662,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -675,19 +675,19 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -698,7 +698,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -709,7 +709,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -764,7 +764,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -805,7 +805,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -829,7 +829,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -870,7 +870,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -914,19 +914,19 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -937,7 +937,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -948,7 +948,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -961,19 +961,19 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -984,7 +984,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -995,7 +995,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -1050,7 +1050,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1091,7 +1091,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1115,7 +1115,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1156,7 +1156,7 @@ declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1204,19 +1204,19 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1227,7 +1227,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1238,7 +1238,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -1287,19 +1287,19 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1310,7 +1310,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1321,7 +1321,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -1337,7 +1337,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -1348,7 +1348,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -1389,7 +1389,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1413,7 +1413,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -1424,7 +1424,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -1465,7 +1465,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1509,19 +1509,19 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1532,7 +1532,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1543,7 +1543,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -1556,19 +1556,19 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1579,7 +1579,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1590,7 +1590,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -1645,7 +1645,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1686,7 +1686,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -1710,7 +1710,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1751,7 +1751,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -1795,19 +1795,19 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1818,7 +1818,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1829,7 +1829,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -1842,19 +1842,19 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -1865,7 +1865,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -1876,7 +1876,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -1931,7 +1931,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -1972,7 +1972,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -1996,7 +1996,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2037,7 +2037,7 @@ declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2085,19 +2085,19 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2108,7 +2108,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2119,7 +2119,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -2140,19 +2140,19 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2163,7 +2163,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2174,7 +2174,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -2219,7 +2219,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -2230,7 +2230,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -2271,7 +2271,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2295,7 +2295,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -2306,7 +2306,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -2347,7 +2347,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2391,19 +2391,19 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2414,7 +2414,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2425,7 +2425,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -2438,19 +2438,19 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2461,7 +2461,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2472,7 +2472,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -2528,7 +2528,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2569,7 +2569,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -2593,7 +2593,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2634,7 +2634,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -2678,19 +2678,19 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2701,7 +2701,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2712,7 +2712,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -2725,19 +2725,19 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2748,7 +2748,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -2759,7 +2759,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -2814,7 +2814,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2855,7 +2855,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2879,7 +2879,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -2920,7 +2920,7 @@ declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.Z currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -2968,19 +2968,19 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -2991,7 +2991,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3002,7 +3002,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -3023,19 +3023,19 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3046,7 +3046,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3057,7 +3057,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -3102,7 +3102,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -3113,7 +3113,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -3154,7 +3154,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3178,7 +3178,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -3189,7 +3189,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -3230,7 +3230,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3274,19 +3274,19 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3297,7 +3297,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3308,7 +3308,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -3321,19 +3321,19 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3344,7 +3344,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3355,7 +3355,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -3411,7 +3411,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3452,7 +3452,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -3476,7 +3476,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3517,7 +3517,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -3561,19 +3561,19 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3584,7 +3584,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3595,7 +3595,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -3608,19 +3608,19 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3631,7 +3631,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3642,7 +3642,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -3698,7 +3698,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3739,7 +3739,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3763,7 +3763,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -3804,7 +3804,7 @@ declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z. currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -3852,19 +3852,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3875,7 +3875,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3886,7 +3886,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -3935,19 +3935,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -3958,7 +3958,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -3969,7 +3969,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -3985,7 +3985,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -3996,7 +3996,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4037,7 +4037,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4061,7 +4061,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -4072,7 +4072,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4113,7 +4113,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4157,19 +4157,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4180,7 +4180,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4191,7 +4191,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -4204,19 +4204,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4227,7 +4227,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4238,7 +4238,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; totalAmount: z.ZodNullable; @@ -4293,7 +4293,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4334,7 +4334,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -4358,7 +4358,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4399,7 +4399,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -4443,19 +4443,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4466,7 +4466,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4477,7 +4477,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -4490,19 +4490,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4513,7 +4513,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4524,7 +4524,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -4579,7 +4579,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4620,7 +4620,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4644,7 +4644,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -4685,7 +4685,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4732,19 +4732,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4755,7 +4755,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4766,7 +4766,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -4815,19 +4815,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -4838,7 +4838,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -4849,7 +4849,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; }, "strip", z.ZodTypeAny, { @@ -4865,7 +4865,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -4876,7 +4876,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4917,7 +4917,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -4941,7 +4941,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -4952,7 +4952,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -4993,7 +4993,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5037,19 +5037,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5060,7 +5060,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5071,7 +5071,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -5084,19 +5084,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5107,7 +5107,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5118,7 +5118,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -5173,7 +5173,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5214,7 +5214,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -5238,7 +5238,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5279,7 +5279,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -5323,19 +5323,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5346,7 +5346,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5357,7 +5357,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -5370,19 +5370,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5393,7 +5393,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5404,7 +5404,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -5459,7 +5459,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5500,7 +5500,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5524,7 +5524,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -5565,7 +5565,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5612,19 +5612,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5635,7 +5635,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5646,7 +5646,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -5667,19 +5667,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5690,7 +5690,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5701,7 +5701,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -5746,7 +5746,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -5757,7 +5757,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -5798,7 +5798,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5822,7 +5822,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -5833,7 +5833,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -5874,7 +5874,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -5918,19 +5918,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5941,7 +5941,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5952,7 +5952,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -5965,19 +5965,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -5988,7 +5988,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -5999,7 +5999,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -6055,7 +6055,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6096,7 +6096,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -6120,7 +6120,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6161,7 +6161,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -6205,19 +6205,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6228,7 +6228,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6239,7 +6239,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -6252,19 +6252,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6275,7 +6275,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6286,7 +6286,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -6341,7 +6341,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6382,7 +6382,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6406,7 +6406,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6447,7 +6447,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6494,19 +6494,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6517,7 +6517,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6528,7 +6528,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -6549,19 +6549,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6572,7 +6572,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6583,7 +6583,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "atleastone">; invoice: z.ZodObject<{ @@ -6628,7 +6628,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -6639,7 +6639,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -6680,7 +6680,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6704,7 +6704,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, ...{ name: string; @@ -6715,7 +6715,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[]]; successUrl: string | null; @@ -6756,7 +6756,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -6800,19 +6800,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6823,7 +6823,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6834,7 +6834,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -6847,19 +6847,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -6870,7 +6870,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -6881,7 +6881,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; invoiceScid: z.ZodNullable; @@ -6937,7 +6937,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -6978,7 +6978,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -7002,7 +7002,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7043,7 +7043,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number; @@ -7087,19 +7087,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7110,7 +7110,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7121,7 +7121,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -7134,19 +7134,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7157,7 +7157,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7168,7 +7168,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -7224,7 +7224,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7265,7 +7265,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7289,7 +7289,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7330,7 +7330,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7374,19 +7374,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7397,7 +7397,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7408,7 +7408,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>, "many">>; productId: z.ZodNullable; @@ -7421,19 +7421,19 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -7444,7 +7444,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -7455,7 +7455,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>>; providedAmount: z.ZodNullable; @@ -7510,7 +7510,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7551,7 +7551,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; @@ -7575,7 +7575,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }[] | null; successUrl: string | null; @@ -7616,7 +7616,7 @@ declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Zod currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; } | null; providedAmount: number | null; diff --git a/dist/schemas/checkout.js b/dist/schemas/checkout.js index 8163a16..0fb9b2c 100644 --- a/dist/schemas/checkout.js +++ b/dist/schemas/checkout.js @@ -5,9 +5,9 @@ import { PaymentReceivedCheckoutSchema, PendingPaymentCheckoutSchema, UnconfirmedCheckoutSchema -} from "../chunk-7EZSTHMJ.js"; +} from "../chunk-CD2LZX3A.js"; +import "../chunk-T6X3KMH6.js"; import "../chunk-TGG53ETU.js"; -import "../chunk-CD4U22RQ.js"; import "../chunk-6M6LFZ3U.js"; export { CheckoutSchema, diff --git a/dist/schemas/product.cjs b/dist/schemas/product.cjs index 3c3a8d0..1a05971 100644 --- a/dist/schemas/product.cjs +++ b/dist/schemas/product.cjs @@ -33,7 +33,7 @@ var CurrencySchema = import_zod.z.enum(["USD", "SAT"]); // src/schemas/product.ts var CheckoutProductPriceSchema = import_zod2.z.object({ id: import_zod2.z.string(), - amountType: import_zod2.z.enum(["FIXED", "CUSTOM", "FREE"]), + amountType: import_zod2.z.enum(["FIXED", "CUSTOM"]), priceAmount: import_zod2.z.number().nullable(), currency: CurrencySchema }); diff --git a/dist/schemas/product.d.cts b/dist/schemas/product.d.cts index 719f907..ec27ada 100644 --- a/dist/schemas/product.d.cts +++ b/dist/schemas/product.d.cts @@ -2,19 +2,19 @@ import { z } from 'zod'; declare const CheckoutProductPriceSchema: z.ZodObject<{ id: z.ZodString; - amountType: z.ZodEnum<["FIXED", "CUSTOM", "FREE"]>; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>; declare const CheckoutProductSchema: z.ZodObject<{ id: z.ZodString; @@ -23,19 +23,19 @@ declare const CheckoutProductSchema: z.ZodObject<{ recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -46,7 +46,7 @@ declare const CheckoutProductSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -57,7 +57,7 @@ declare const CheckoutProductSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>; diff --git a/dist/schemas/product.d.ts b/dist/schemas/product.d.ts index 719f907..ec27ada 100644 --- a/dist/schemas/product.d.ts +++ b/dist/schemas/product.d.ts @@ -2,19 +2,19 @@ import { z } from 'zod'; declare const CheckoutProductPriceSchema: z.ZodObject<{ id: z.ZodString; - amountType: z.ZodEnum<["FIXED", "CUSTOM", "FREE"]>; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>; declare const CheckoutProductSchema: z.ZodObject<{ id: z.ZodString; @@ -23,19 +23,19 @@ declare const CheckoutProductSchema: z.ZodObject<{ recurringInterval: z.ZodNullable>; prices: z.ZodArray; + amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; priceAmount: z.ZodNullable; currency: z.ZodEnum<["USD", "SAT"]>; }, "strip", z.ZodTypeAny, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }, { currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }>, "many">; }, "strip", z.ZodTypeAny, { name: string; @@ -46,7 +46,7 @@ declare const CheckoutProductSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }, { name: string; @@ -57,7 +57,7 @@ declare const CheckoutProductSchema: z.ZodObject<{ currency: "USD" | "SAT"; priceAmount: number | null; id: string; - amountType: "FIXED" | "CUSTOM" | "FREE"; + amountType: "FIXED" | "CUSTOM"; }[]; }>; diff --git a/dist/schemas/product.js b/dist/schemas/product.js index 9b22ce1..57d42b6 100644 --- a/dist/schemas/product.js +++ b/dist/schemas/product.js @@ -1,7 +1,7 @@ import { CheckoutProductPriceSchema, CheckoutProductSchema -} from "../chunk-CD4U22RQ.js"; +} from "../chunk-T6X3KMH6.js"; import "../chunk-6M6LFZ3U.js"; export { CheckoutProductPriceSchema, diff --git a/tests/schemas/product.test.ts b/tests/schemas/product.test.ts index dd90f44..ebe61b5 100644 --- a/tests/schemas/product.test.ts +++ b/tests/schemas/product.test.ts @@ -43,7 +43,7 @@ describe("Product Schemas", () => { expect(result.success).toBe(true); }); - test("should validate price with FREE amount type", () => { + test("should reject FREE amount type (not supported)", () => { const freePrice = { ...baseProductPriceData, amountType: "FREE" as const, @@ -51,10 +51,10 @@ describe("Product Schemas", () => { }; const result = CheckoutProductPriceSchema.safeParse(freePrice); - expect(result.success).toBe(true); + expect(result.success).toBe(false); }); - test("should reject METERED amount type", () => { + test("should reject METERED amount type (not supported)", () => { const meteredPrice = { ...baseProductPriceData, amountType: "METERED" as const, @@ -275,18 +275,6 @@ describe("Product Schemas", () => { }, ], }, - { - ...baseProductData, - id: "product_free", - prices: [ - { - ...baseProductPriceData, - id: "price_free", - amountType: "FREE" as const, - priceAmount: 0, - }, - ], - }, ]; products.forEach((product) => { From fb890afae4b8c7986981d13a49ee833fdf28544c Mon Sep 17 00:00:00 2001 From: Nat Elkins Date: Mon, 19 Jan 2026 21:51:01 -0500 Subject: [PATCH 8/8] chore: remove dist from version control (use npm publish) --- dist/chunk-22HCL22X.js | 183 - dist/chunk-6M6LFZ3U.js | 7 - dist/chunk-6XWZHZXK.js | 112 - dist/chunk-7EZSTHMJ.js | 183 - dist/chunk-CD4U22RQ.js | 24 - dist/chunk-DVDEDUJU.js | 122 - dist/chunk-IZBMPMWK.js | 112 - dist/chunk-OJKHC5SH.js | 12 - dist/chunk-RZPQSVO3.js | 26 - dist/chunk-TGG53ETU.js | 32 - dist/chunk-WJ6HHWDE.js | 58 - dist/chunk-Y6DXID65.js | 35 - dist/contracts/checkout.cjs | 351 - dist/contracts/checkout.d.cts | 34899 -------------------- dist/contracts/checkout.d.ts | 34899 -------------------- dist/contracts/checkout.js | 38 - dist/contracts/onboarding.cjs | 96 - dist/contracts/onboarding.d.cts | 236 - dist/contracts/onboarding.d.ts | 236 - dist/contracts/onboarding.js | 13 - dist/contracts/products.cjs | 65 - dist/contracts/products.d.cts | 285 - dist/contracts/products.d.ts | 285 - dist/contracts/products.js | 15 - dist/index.cjs | 552 - dist/index.d.cts | 15609 --------- dist/index.d.ts | 15609 --------- dist/index.js | 43 - dist/lib/utils.cjs | 37 - dist/lib/utils.d.cts | 40 - dist/lib/utils.d.ts | 40 - dist/lib/utils.js | 8 - dist/schemas/checkout.cjs | 243 - dist/schemas/checkout.d.cts | 7633 ----- dist/schemas/checkout.d.ts | 7633 ----- dist/schemas/checkout.js | 19 - dist/schemas/currency.cjs | 31 - dist/schemas/currency.d.cts | 11 - dist/schemas/currency.d.ts | 11 - dist/schemas/currency.js | 6 - dist/schemas/invoice.cjs | 61 - dist/schemas/invoice.d.cts | 118 - dist/schemas/invoice.d.ts | 118 - dist/schemas/invoice.js | 13 - dist/schemas/onboarding.cjs | 87 - dist/schemas/onboarding.d.cts | 118 - dist/schemas/onboarding.d.ts | 118 - dist/schemas/onboarding.js | 16 - dist/schemas/product.cjs | 51 - dist/schemas/product.d.cts | 64 - dist/schemas/product.d.ts | 64 - dist/schemas/product.js | 9 - dist/validation/metadata-validation.cjs | 154 - dist/validation/metadata-validation.d.cts | 19 - dist/validation/metadata-validation.d.ts | 19 - dist/validation/metadata-validation.js | 13 - 56 files changed, 120891 deletions(-) delete mode 100644 dist/chunk-22HCL22X.js delete mode 100644 dist/chunk-6M6LFZ3U.js delete mode 100644 dist/chunk-6XWZHZXK.js delete mode 100644 dist/chunk-7EZSTHMJ.js delete mode 100644 dist/chunk-CD4U22RQ.js delete mode 100644 dist/chunk-DVDEDUJU.js delete mode 100644 dist/chunk-IZBMPMWK.js delete mode 100644 dist/chunk-OJKHC5SH.js delete mode 100644 dist/chunk-RZPQSVO3.js delete mode 100644 dist/chunk-TGG53ETU.js delete mode 100644 dist/chunk-WJ6HHWDE.js delete mode 100644 dist/chunk-Y6DXID65.js delete mode 100644 dist/contracts/checkout.cjs delete mode 100644 dist/contracts/checkout.d.cts delete mode 100644 dist/contracts/checkout.d.ts delete mode 100644 dist/contracts/checkout.js delete mode 100644 dist/contracts/onboarding.cjs delete mode 100644 dist/contracts/onboarding.d.cts delete mode 100644 dist/contracts/onboarding.d.ts delete mode 100644 dist/contracts/onboarding.js delete mode 100644 dist/contracts/products.cjs delete mode 100644 dist/contracts/products.d.cts delete mode 100644 dist/contracts/products.d.ts delete mode 100644 dist/contracts/products.js delete mode 100644 dist/index.cjs delete mode 100644 dist/index.d.cts delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/lib/utils.cjs delete mode 100644 dist/lib/utils.d.cts delete mode 100644 dist/lib/utils.d.ts delete mode 100644 dist/lib/utils.js delete mode 100644 dist/schemas/checkout.cjs delete mode 100644 dist/schemas/checkout.d.cts delete mode 100644 dist/schemas/checkout.d.ts delete mode 100644 dist/schemas/checkout.js delete mode 100644 dist/schemas/currency.cjs delete mode 100644 dist/schemas/currency.d.cts delete mode 100644 dist/schemas/currency.d.ts delete mode 100644 dist/schemas/currency.js delete mode 100644 dist/schemas/invoice.cjs delete mode 100644 dist/schemas/invoice.d.cts delete mode 100644 dist/schemas/invoice.d.ts delete mode 100644 dist/schemas/invoice.js delete mode 100644 dist/schemas/onboarding.cjs delete mode 100644 dist/schemas/onboarding.d.cts delete mode 100644 dist/schemas/onboarding.d.ts delete mode 100644 dist/schemas/onboarding.js delete mode 100644 dist/schemas/product.cjs delete mode 100644 dist/schemas/product.d.cts delete mode 100644 dist/schemas/product.d.ts delete mode 100644 dist/schemas/product.js delete mode 100644 dist/validation/metadata-validation.cjs delete mode 100644 dist/validation/metadata-validation.d.cts delete mode 100644 dist/validation/metadata-validation.d.ts delete mode 100644 dist/validation/metadata-validation.js diff --git a/dist/chunk-22HCL22X.js b/dist/chunk-22HCL22X.js deleted file mode 100644 index 5355e9b..0000000 --- a/dist/chunk-22HCL22X.js +++ /dev/null @@ -1,183 +0,0 @@ -import { - CheckoutProductSchema -} from "./chunk-CD4U22RQ.js"; -import { - BaseInvoiceSchema, - DynamicAmountPendingInvoiceSchema, - FixedAmountPendingInvoiceSchema, - PaidInvoiceSchema -} from "./chunk-TGG53ETU.js"; -import { - CurrencySchema -} from "./chunk-6M6LFZ3U.js"; - -// src/schemas/checkout.ts -import { z } from "zod"; -var CustomerFieldSchema = z.string().min(1); -var CustomerOutputSchema = z.object({ - name: z.string().nullish(), - email: z.string().email().nullish(), - externalId: z.string().nullish() -}).catchall(z.string()); -var BaseCheckoutSchema = z.object({ - id: z.string(), - createdAt: z.date(), - clientSecret: z.string(), - type: z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]), - status: z.enum([ - "UNCONFIRMED", - "CONFIRMED", - "PENDING_PAYMENT", - "PAYMENT_RECEIVED", - "EXPIRED" - ]), - organizationId: z.string(), - expiresAt: z.date(), - userMetadata: z.record(z.any()).nullable(), - customFieldData: z.record(z.any()).nullable(), - currency: CurrencySchema, - allowDiscountCodes: z.boolean(), - /** - * Array of customer fields required at checkout. - * @example ['email'] - email required - * @example ['email', 'name'] - both required - */ - requireCustomerData: z.array(CustomerFieldSchema).nullable(), - successUrl: z.string().nullable(), - /** - * Customer data associated with this checkout. - */ - customer: CustomerOutputSchema.nullable(), - customerBillingAddress: z.record(z.any()).nullable(), - products: z.array(CheckoutProductSchema).nullable(), - /** - * The selected product ID (from the products array). - * For PRODUCTS checkouts, this is the product the customer has chosen. - * null for AMOUNT/TOP_UP checkouts. - */ - productId: z.string().nullable(), - /** - * The selected product price ID. - * References a price from the selected product's prices array. - * null for AMOUNT/TOP_UP checkouts. - */ - productPriceId: z.string().nullable(), - /** - * User-provided amount for CUSTOM price products. - * Only set when the selected price has amountType: CUSTOM. - */ - customAmount: z.number().nullable(), - /** - * The selected product with full details (convenience field). - * Same shape as items in the products array. - * null if no product is selected. - */ - product: CheckoutProductSchema.nullable(), - providedAmount: z.number().nullable(), - totalAmount: z.number().nullable(), - discountAmount: z.number().nullable(), - netAmount: z.number().nullable(), - taxAmount: z.number().nullable(), - invoiceAmountSats: z.number().nullable(), - invoiceScid: z.string().nullable(), - btcPrice: z.number().nullable(), - invoice: BaseInvoiceSchema.nullable() -}); -var AmountFieldsSchema = z.object({ - totalAmount: z.number(), - discountAmount: z.number(), - netAmount: z.number(), - taxAmount: z.number(), - invoiceAmountSats: z.number(), - btcPrice: z.number() -}); -var ExpiredCheckoutSchema = BaseCheckoutSchema.extend({ - status: z.literal("EXPIRED"), - type: z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]) -}); -var UnconfirmedCheckoutSchema = z.discriminatedUnion("type", [ - BaseCheckoutSchema.extend({ - status: z.literal("UNCONFIRMED"), - type: z.literal("PRODUCTS"), - products: z.array(CheckoutProductSchema).nonempty() - }), - BaseCheckoutSchema.extend({ - status: z.literal("UNCONFIRMED"), - type: z.literal("AMOUNT"), - providedAmount: z.number() - }), - BaseCheckoutSchema.extend({ - status: z.literal("UNCONFIRMED"), - type: z.literal("TOP_UP") - }) -]); -var ConfirmedCheckoutSchema = z.discriminatedUnion("type", [ - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: z.literal("CONFIRMED"), - type: z.literal("PRODUCTS"), - products: z.array(CheckoutProductSchema).nonempty() - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: z.literal("CONFIRMED"), - type: z.literal("AMOUNT"), - providedAmount: z.number() - }), - BaseCheckoutSchema.extend({ - status: z.literal("CONFIRMED"), - type: z.literal("TOP_UP") - }) -]); -var PendingPaymentCheckoutSchema = z.discriminatedUnion("type", [ - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: z.literal("PENDING_PAYMENT"), - type: z.literal("PRODUCTS"), - products: z.array(CheckoutProductSchema).nonempty(), - invoice: FixedAmountPendingInvoiceSchema - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: z.literal("PENDING_PAYMENT"), - type: z.literal("AMOUNT"), - providedAmount: z.number(), - invoice: FixedAmountPendingInvoiceSchema - }), - BaseCheckoutSchema.extend({ - status: z.literal("PENDING_PAYMENT"), - type: z.literal("TOP_UP"), - invoice: DynamicAmountPendingInvoiceSchema - }) -]); -var PaymentReceivedCheckoutSchema = z.discriminatedUnion("type", [ - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: z.literal("PAYMENT_RECEIVED"), - type: z.literal("PRODUCTS"), - products: z.array(CheckoutProductSchema).nonempty(), - invoice: PaidInvoiceSchema - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: z.literal("PAYMENT_RECEIVED"), - type: z.literal("AMOUNT"), - providedAmount: z.number(), - invoice: PaidInvoiceSchema - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: z.literal("PAYMENT_RECEIVED"), - type: z.literal("TOP_UP"), - invoice: PaidInvoiceSchema - }) -]); -var CheckoutSchema = z.union([ - UnconfirmedCheckoutSchema, - ConfirmedCheckoutSchema, - PendingPaymentCheckoutSchema, - PaymentReceivedCheckoutSchema, - ExpiredCheckoutSchema -]); - -export { - ExpiredCheckoutSchema, - UnconfirmedCheckoutSchema, - ConfirmedCheckoutSchema, - PendingPaymentCheckoutSchema, - PaymentReceivedCheckoutSchema, - CheckoutSchema -}; diff --git a/dist/chunk-6M6LFZ3U.js b/dist/chunk-6M6LFZ3U.js deleted file mode 100644 index d572c5d..0000000 --- a/dist/chunk-6M6LFZ3U.js +++ /dev/null @@ -1,7 +0,0 @@ -// src/schemas/currency.ts -import { z } from "zod"; -var CurrencySchema = z.enum(["USD", "SAT"]); - -export { - CurrencySchema -}; diff --git a/dist/chunk-6XWZHZXK.js b/dist/chunk-6XWZHZXK.js deleted file mode 100644 index 3b58fb4..0000000 --- a/dist/chunk-6XWZHZXK.js +++ /dev/null @@ -1,112 +0,0 @@ -import { - CheckoutSchema -} from "./chunk-7EZSTHMJ.js"; -import { - CurrencySchema -} from "./chunk-6M6LFZ3U.js"; - -// src/contracts/checkout.ts -import { oc } from "@orpc/contract"; -import { z } from "zod"; -var emptyStringToUndefined = z.string().transform((val) => val.trim() === "" ? void 0 : val); -var emailOrEmpty = z.string().email().optional().or(z.literal("")); -var CustomerFieldSchema = z.string().min(1); -var CustomerInputSchema = z.object({ - name: emptyStringToUndefined.optional(), - email: emailOrEmpty, - externalId: emptyStringToUndefined.optional() -}).catchall(z.string()); -var CreateCheckoutInputSchema = z.object({ - nodeId: z.string(), - amount: z.number().optional(), - currency: CurrencySchema.optional(), - products: z.array(z.string()).optional(), - successUrl: z.string().optional(), - allowDiscountCodes: z.boolean().optional(), - metadata: z.record(z.string(), z.any()).optional(), - /** - * Customer data for this checkout. - */ - customer: CustomerInputSchema.optional(), - /** - * Array of customer fields to require at checkout. - * If a field is listed here and not provided, the checkout UI will prompt for it. - * @example ['email'] - require email - * @example ['email', 'name'] - require both - */ - requireCustomerData: z.array(CustomerFieldSchema).optional() -}); -var ConfirmCheckoutInputSchema = z.object({ - checkoutId: z.string(), - /** - * Customer data provided at confirm time. - */ - customer: CustomerInputSchema.optional(), - /** - * Product selection at confirm time. - * - undefined or [] = keep current selection - * - [{ productId }] = change selection to this product - * - priceAmount required if selected price has amountType: CUSTOM - * - * Currently limited to single selection (max 1 item). - */ - products: z.array( - z.object({ - productId: z.string(), - priceAmount: z.number().optional() - }) - ).max(1).optional() -}); -var ApplyDiscountCodeInputSchema = z.object({ - checkoutId: z.string(), - discountCode: z.string() -}); -var RegisterInvoiceInputSchema = z.object({ - nodeId: z.string(), - scid: z.string(), - checkoutId: z.string(), - invoice: z.string(), - paymentHash: z.string(), - invoiceExpiresAt: z.date() -}); -var PaymentReceivedInputSchema = z.object({ - payments: z.array( - z.object({ - paymentHash: z.string(), - amountSats: z.number(), - sandbox: z.boolean().default(false) - }) - ) -}); -var GetCheckoutInputSchema = z.object({ id: z.string() }); -var createCheckoutContract = oc.input(CreateCheckoutInputSchema).output(CheckoutSchema); -var applyDiscountCodeContract = oc.input(ApplyDiscountCodeInputSchema).output(CheckoutSchema); -var confirmCheckoutContract = oc.input(ConfirmCheckoutInputSchema).output(CheckoutSchema); -var registerInvoiceContract = oc.input(RegisterInvoiceInputSchema).output(CheckoutSchema); -var getCheckoutContract = oc.input(GetCheckoutInputSchema).output(CheckoutSchema); -var paymentReceivedContract = oc.input(PaymentReceivedInputSchema).output(z.object({ ok: z.boolean() })); -var checkout = { - get: getCheckoutContract, - create: createCheckoutContract, - confirm: confirmCheckoutContract, - registerInvoice: registerInvoiceContract, - paymentReceived: paymentReceivedContract -}; - -export { - CustomerFieldSchema, - CustomerInputSchema, - CreateCheckoutInputSchema, - ConfirmCheckoutInputSchema, - ApplyDiscountCodeInputSchema, - RegisterInvoiceInputSchema, - PaymentReceivedInputSchema, - GetCheckoutInputSchema, - createCheckoutContract, - applyDiscountCodeContract, - confirmCheckoutContract, - registerInvoiceContract, - getCheckoutContract, - paymentReceivedContract, - checkout -}; diff --git a/dist/chunk-7EZSTHMJ.js b/dist/chunk-7EZSTHMJ.js deleted file mode 100644 index 70b8941..0000000 --- a/dist/chunk-7EZSTHMJ.js +++ /dev/null @@ -1,183 +0,0 @@ -import { - BaseInvoiceSchema, - DynamicAmountPendingInvoiceSchema, - FixedAmountPendingInvoiceSchema, - PaidInvoiceSchema -} from "./chunk-TGG53ETU.js"; -import { - CheckoutProductSchema -} from "./chunk-CD4U22RQ.js"; -import { - CurrencySchema -} from "./chunk-6M6LFZ3U.js"; - -// src/schemas/checkout.ts -import { z } from "zod"; -var CustomerFieldSchema = z.string().min(1); -var CustomerOutputSchema = z.object({ - name: z.string().nullish(), - email: z.string().email().nullish(), - externalId: z.string().nullish() -}).catchall(z.string()); -var BaseCheckoutSchema = z.object({ - id: z.string(), - createdAt: z.date(), - clientSecret: z.string(), - type: z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]), - status: z.enum([ - "UNCONFIRMED", - "CONFIRMED", - "PENDING_PAYMENT", - "PAYMENT_RECEIVED", - "EXPIRED" - ]), - organizationId: z.string(), - expiresAt: z.date(), - userMetadata: z.record(z.any()).nullable(), - customFieldData: z.record(z.any()).nullable(), - currency: CurrencySchema, - allowDiscountCodes: z.boolean(), - /** - * Array of customer fields required at checkout. - * @example ['email'] - email required - * @example ['email', 'name'] - both required - */ - requireCustomerData: z.array(CustomerFieldSchema).nullable(), - successUrl: z.string().nullable(), - /** - * Customer data associated with this checkout. - */ - customer: CustomerOutputSchema.nullable(), - customerBillingAddress: z.record(z.any()).nullable(), - products: z.array(CheckoutProductSchema).nullable(), - /** - * The selected product ID (from the products array). - * For PRODUCTS checkouts, this is the product the customer has chosen. - * null for AMOUNT/TOP_UP checkouts. - */ - productId: z.string().nullable(), - /** - * The selected product price ID. - * References a price from the selected product's prices array. - * null for AMOUNT/TOP_UP checkouts. - */ - productPriceId: z.string().nullable(), - /** - * User-provided amount for CUSTOM price products. - * Only set when the selected price has amountType: CUSTOM. - */ - customAmount: z.number().nullable(), - /** - * The selected product with full details (convenience field). - * Same shape as items in the products array. - * null if no product is selected. - */ - product: CheckoutProductSchema.nullable(), - providedAmount: z.number().nullable(), - totalAmount: z.number().nullable(), - discountAmount: z.number().nullable(), - netAmount: z.number().nullable(), - taxAmount: z.number().nullable(), - invoiceAmountSats: z.number().nullable(), - invoiceScid: z.string().nullable(), - btcPrice: z.number().nullable(), - invoice: BaseInvoiceSchema.nullable() -}); -var AmountFieldsSchema = z.object({ - totalAmount: z.number(), - discountAmount: z.number(), - netAmount: z.number(), - taxAmount: z.number(), - invoiceAmountSats: z.number(), - btcPrice: z.number() -}); -var ExpiredCheckoutSchema = BaseCheckoutSchema.extend({ - status: z.literal("EXPIRED"), - type: z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]) -}); -var UnconfirmedCheckoutSchema = z.discriminatedUnion("type", [ - BaseCheckoutSchema.extend({ - status: z.literal("UNCONFIRMED"), - type: z.literal("PRODUCTS"), - products: z.array(CheckoutProductSchema).nonempty() - }), - BaseCheckoutSchema.extend({ - status: z.literal("UNCONFIRMED"), - type: z.literal("AMOUNT"), - providedAmount: z.number() - }), - BaseCheckoutSchema.extend({ - status: z.literal("UNCONFIRMED"), - type: z.literal("TOP_UP") - }) -]); -var ConfirmedCheckoutSchema = z.discriminatedUnion("type", [ - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: z.literal("CONFIRMED"), - type: z.literal("PRODUCTS"), - products: z.array(CheckoutProductSchema).nonempty() - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: z.literal("CONFIRMED"), - type: z.literal("AMOUNT"), - providedAmount: z.number() - }), - BaseCheckoutSchema.extend({ - status: z.literal("CONFIRMED"), - type: z.literal("TOP_UP") - }) -]); -var PendingPaymentCheckoutSchema = z.discriminatedUnion("type", [ - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: z.literal("PENDING_PAYMENT"), - type: z.literal("PRODUCTS"), - products: z.array(CheckoutProductSchema).nonempty(), - invoice: FixedAmountPendingInvoiceSchema - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: z.literal("PENDING_PAYMENT"), - type: z.literal("AMOUNT"), - providedAmount: z.number(), - invoice: FixedAmountPendingInvoiceSchema - }), - BaseCheckoutSchema.extend({ - status: z.literal("PENDING_PAYMENT"), - type: z.literal("TOP_UP"), - invoice: DynamicAmountPendingInvoiceSchema - }) -]); -var PaymentReceivedCheckoutSchema = z.discriminatedUnion("type", [ - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: z.literal("PAYMENT_RECEIVED"), - type: z.literal("PRODUCTS"), - products: z.array(CheckoutProductSchema).nonempty(), - invoice: PaidInvoiceSchema - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: z.literal("PAYMENT_RECEIVED"), - type: z.literal("AMOUNT"), - providedAmount: z.number(), - invoice: PaidInvoiceSchema - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: z.literal("PAYMENT_RECEIVED"), - type: z.literal("TOP_UP"), - invoice: PaidInvoiceSchema - }) -]); -var CheckoutSchema = z.union([ - UnconfirmedCheckoutSchema, - ConfirmedCheckoutSchema, - PendingPaymentCheckoutSchema, - PaymentReceivedCheckoutSchema, - ExpiredCheckoutSchema -]); - -export { - ExpiredCheckoutSchema, - UnconfirmedCheckoutSchema, - ConfirmedCheckoutSchema, - PendingPaymentCheckoutSchema, - PaymentReceivedCheckoutSchema, - CheckoutSchema -}; diff --git a/dist/chunk-CD4U22RQ.js b/dist/chunk-CD4U22RQ.js deleted file mode 100644 index 1a4ff5a..0000000 --- a/dist/chunk-CD4U22RQ.js +++ /dev/null @@ -1,24 +0,0 @@ -import { - CurrencySchema -} from "./chunk-6M6LFZ3U.js"; - -// src/schemas/product.ts -import { z } from "zod"; -var CheckoutProductPriceSchema = z.object({ - id: z.string(), - amountType: z.enum(["FIXED", "CUSTOM", "FREE"]), - priceAmount: z.number().nullable(), - currency: CurrencySchema -}); -var CheckoutProductSchema = z.object({ - id: z.string(), - name: z.string(), - description: z.string().nullable(), - recurringInterval: z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(), - prices: z.array(CheckoutProductPriceSchema) -}); - -export { - CheckoutProductPriceSchema, - CheckoutProductSchema -}; diff --git a/dist/chunk-DVDEDUJU.js b/dist/chunk-DVDEDUJU.js deleted file mode 100644 index 899d45a..0000000 --- a/dist/chunk-DVDEDUJU.js +++ /dev/null @@ -1,122 +0,0 @@ -import { - err, - ok -} from "./chunk-OJKHC5SH.js"; - -// src/validation/metadata-validation.ts -var MAX_METADATA_SIZE_BYTES = 1024; -var MAX_KEY_LENGTH = 100; -var MAX_KEY_COUNT = 50; -var CONTROL_CHAR_PATTERN = /[\x00-\x08\x0B-\x0C\x0E-\x1F]/; -var VALID_KEY_PATTERN = /^[a-zA-Z0-9_-]+$/; -function validateKeyFormat(key) { - if (!VALID_KEY_PATTERN.test(key)) { - const message = key === "" ? "Metadata keys cannot be empty" : `Metadata key "${key}" contains invalid characters. Keys must contain only letters, numbers, underscores, and hyphens.`; - return err({ type: "invalid_key_format", message }); - } - return ok(void 0); -} -function validateKeyLength(key) { - if (key.length > MAX_KEY_LENGTH) { - return err({ - type: "key_too_long", - message: `Metadata key "${key}" exceeds maximum length of ${MAX_KEY_LENGTH} characters` - }); - } - return ok(void 0); -} -function validateNullBytes(key, value) { - if (value.includes("\0")) { - return err({ - type: "control_character", - message: `Metadata value for key "${key}" cannot contain null bytes` - }); - } - return ok(void 0); -} -function validateControlCharacters(key, value) { - if (CONTROL_CHAR_PATTERN.test(value)) { - return err({ - type: "control_character", - message: `Metadata value for key "${key}" cannot contain control characters` - }); - } - return ok(void 0); -} -function validateUtf8Encoding(key, value) { - try { - const encoded = new TextEncoder().encode(value); - new TextDecoder("utf-8", { fatal: true }).decode(encoded); - } catch { - return err({ - type: "invalid_encoding", - message: `Metadata value for key "${key}" contains invalid UTF-8 encoding` - }); - } - return ok(void 0); -} -function validateMetadataSize(metadata) { - const serialized = JSON.stringify(metadata); - const sizeBytes = new TextEncoder().encode(serialized).length; - if (sizeBytes > MAX_METADATA_SIZE_BYTES) { - return err({ - type: "size_exceeded", - message: `Metadata size (${sizeBytes} bytes) exceeds maximum allowed size (${MAX_METADATA_SIZE_BYTES} bytes). To fix this, reduce the size of your metadata values or remove unnecessary fields.` - }); - } - return ok(void 0); -} -function validateKey(key) { - const formatCheck = validateKeyFormat(key); - if (!formatCheck.ok) return formatCheck; - const lengthCheck = validateKeyLength(key); - if (!lengthCheck.ok) return lengthCheck; - return ok(void 0); -} -function validateValue(key, value) { - const nullByteCheck = validateNullBytes(key, value); - if (!nullByteCheck.ok) return nullByteCheck; - const controlCharCheck = validateControlCharacters(key, value); - if (!controlCharCheck.ok) return controlCharCheck; - const encodingCheck = validateUtf8Encoding(key, value); - if (!encodingCheck.ok) return encodingCheck; - return ok(void 0); -} -function validateMetadata(metadata) { - if (!metadata) { - return ok(void 0); - } - const errors = []; - const keyCount = Object.keys(metadata).length; - if (keyCount > MAX_KEY_COUNT) { - errors.push({ - type: "key_count_exceeded", - message: `Metadata contains ${keyCount} keys, which exceeds the maximum of ${MAX_KEY_COUNT} keys` - }); - } - for (const [key, value] of Object.entries(metadata)) { - const keyCheck = validateKey(key); - if (!keyCheck.ok) { - errors.push(keyCheck.error); - } - const valueCheck = validateValue(key, value); - if (!valueCheck.ok) { - errors.push(valueCheck.error); - } - } - const sizeCheck = validateMetadataSize(metadata); - if (!sizeCheck.ok) { - errors.push(sizeCheck.error); - } - if (errors.length > 0) { - return err(errors); - } - return ok(void 0); -} - -export { - MAX_METADATA_SIZE_BYTES, - MAX_KEY_LENGTH, - MAX_KEY_COUNT, - validateMetadata -}; diff --git a/dist/chunk-IZBMPMWK.js b/dist/chunk-IZBMPMWK.js deleted file mode 100644 index 7d4c5b2..0000000 --- a/dist/chunk-IZBMPMWK.js +++ /dev/null @@ -1,112 +0,0 @@ -import { - CheckoutSchema -} from "./chunk-22HCL22X.js"; -import { - CurrencySchema -} from "./chunk-6M6LFZ3U.js"; - -// src/contracts/checkout.ts -import { oc } from "@orpc/contract"; -import { z } from "zod"; -var emptyStringToUndefined = z.string().transform((val) => val.trim() === "" ? void 0 : val); -var emailOrEmpty = z.string().email().optional().or(z.literal("")); -var CustomerFieldSchema = z.string().min(1); -var CustomerInputSchema = z.object({ - name: emptyStringToUndefined.optional(), - email: emailOrEmpty, - externalId: emptyStringToUndefined.optional() -}).catchall(z.string()); -var CreateCheckoutInputSchema = z.object({ - nodeId: z.string(), - amount: z.number().optional(), - currency: CurrencySchema.optional(), - products: z.array(z.string()).optional(), - successUrl: z.string().optional(), - allowDiscountCodes: z.boolean().optional(), - metadata: z.record(z.string(), z.any()).optional(), - /** - * Customer data for this checkout. - */ - customer: CustomerInputSchema.optional(), - /** - * Array of customer fields to require at checkout. - * If a field is listed here and not provided, the checkout UI will prompt for it. - * @example ['email'] - require email - * @example ['email', 'name'] - require both - */ - requireCustomerData: z.array(CustomerFieldSchema).optional() -}); -var ConfirmCheckoutInputSchema = z.object({ - checkoutId: z.string(), - /** - * Customer data provided at confirm time. - */ - customer: CustomerInputSchema.optional(), - /** - * Product selection at confirm time. - * - undefined or [] = keep current selection - * - [{ productId }] = change selection to this product - * - priceAmount required if selected price has amountType: CUSTOM - * - * Currently limited to single selection (max 1 item). - */ - products: z.array( - z.object({ - productId: z.string(), - priceAmount: z.number().optional() - }) - ).max(1).optional() -}); -var ApplyDiscountCodeInputSchema = z.object({ - checkoutId: z.string(), - discountCode: z.string() -}); -var RegisterInvoiceInputSchema = z.object({ - nodeId: z.string(), - scid: z.string(), - checkoutId: z.string(), - invoice: z.string(), - paymentHash: z.string(), - invoiceExpiresAt: z.date() -}); -var PaymentReceivedInputSchema = z.object({ - payments: z.array( - z.object({ - paymentHash: z.string(), - amountSats: z.number(), - sandbox: z.boolean().default(false) - }) - ) -}); -var GetCheckoutInputSchema = z.object({ id: z.string() }); -var createCheckoutContract = oc.input(CreateCheckoutInputSchema).output(CheckoutSchema); -var applyDiscountCodeContract = oc.input(ApplyDiscountCodeInputSchema).output(CheckoutSchema); -var confirmCheckoutContract = oc.input(ConfirmCheckoutInputSchema).output(CheckoutSchema); -var registerInvoiceContract = oc.input(RegisterInvoiceInputSchema).output(CheckoutSchema); -var getCheckoutContract = oc.input(GetCheckoutInputSchema).output(CheckoutSchema); -var paymentReceivedContract = oc.input(PaymentReceivedInputSchema).output(z.object({ ok: z.boolean() })); -var checkout = { - get: getCheckoutContract, - create: createCheckoutContract, - confirm: confirmCheckoutContract, - registerInvoice: registerInvoiceContract, - paymentReceived: paymentReceivedContract -}; - -export { - CustomerFieldSchema, - CustomerInputSchema, - CreateCheckoutInputSchema, - ConfirmCheckoutInputSchema, - ApplyDiscountCodeInputSchema, - RegisterInvoiceInputSchema, - PaymentReceivedInputSchema, - GetCheckoutInputSchema, - createCheckoutContract, - applyDiscountCodeContract, - confirmCheckoutContract, - registerInvoiceContract, - getCheckoutContract, - paymentReceivedContract, - checkout -}; diff --git a/dist/chunk-OJKHC5SH.js b/dist/chunk-OJKHC5SH.js deleted file mode 100644 index 9b2f5ba..0000000 --- a/dist/chunk-OJKHC5SH.js +++ /dev/null @@ -1,12 +0,0 @@ -// src/lib/utils.ts -function ok(value) { - return { ok: true, value }; -} -function err(error) { - return { ok: false, error }; -} - -export { - ok, - err -}; diff --git a/dist/chunk-RZPQSVO3.js b/dist/chunk-RZPQSVO3.js deleted file mode 100644 index 6d68bbe..0000000 --- a/dist/chunk-RZPQSVO3.js +++ /dev/null @@ -1,26 +0,0 @@ -import { - BootstrapInputSchema, - BootstrapOutputSchema, - PollDeviceAuthInputSchema, - PollDeviceAuthOutputSchema, - StartDeviceAuthInputSchema, - StartDeviceAuthOutputSchema -} from "./chunk-WJ6HHWDE.js"; - -// src/contracts/onboarding.ts -import { oc } from "@orpc/contract"; -var startDeviceAuthContract = oc.input(StartDeviceAuthInputSchema).output(StartDeviceAuthOutputSchema); -var pollDeviceAuthContract = oc.input(PollDeviceAuthInputSchema).output(PollDeviceAuthOutputSchema); -var bootstrapContract = oc.input(BootstrapInputSchema).output(BootstrapOutputSchema); -var onboarding = { - startDeviceAuth: startDeviceAuthContract, - pollDeviceAuth: pollDeviceAuthContract, - bootstrap: bootstrapContract -}; - -export { - startDeviceAuthContract, - pollDeviceAuthContract, - bootstrapContract, - onboarding -}; diff --git a/dist/chunk-TGG53ETU.js b/dist/chunk-TGG53ETU.js deleted file mode 100644 index ddff9ae..0000000 --- a/dist/chunk-TGG53ETU.js +++ /dev/null @@ -1,32 +0,0 @@ -import { - CurrencySchema -} from "./chunk-6M6LFZ3U.js"; - -// src/schemas/invoice.ts -import { z } from "zod"; -var BaseInvoiceSchema = z.object({ - invoice: z.string(), - expiresAt: z.date(), - paymentHash: z.string(), - amountSats: z.number().nullable(), - amountSatsReceived: z.number().nullable(), - currency: CurrencySchema, - fiatAmount: z.number().nullable(), - btcPrice: z.number().nullable() -}); -var FixedAmountPendingInvoiceSchema = BaseInvoiceSchema.extend({ - amountSats: z.number(), - fiatAmount: z.number(), - btcPrice: z.number() -}); -var DynamicAmountPendingInvoiceSchema = BaseInvoiceSchema; -var PaidInvoiceSchema = FixedAmountPendingInvoiceSchema.extend({ - amountSatsReceived: z.number() -}); - -export { - BaseInvoiceSchema, - FixedAmountPendingInvoiceSchema, - DynamicAmountPendingInvoiceSchema, - PaidInvoiceSchema -}; diff --git a/dist/chunk-WJ6HHWDE.js b/dist/chunk-WJ6HHWDE.js deleted file mode 100644 index fac568e..0000000 --- a/dist/chunk-WJ6HHWDE.js +++ /dev/null @@ -1,58 +0,0 @@ -// src/schemas/onboarding.ts -import { z } from "zod"; -var StartDeviceAuthInputSchema = z.object({ - clientDisplayName: z.string().optional(), - webhookUrl: z.string().url().optional(), - forceNewWebhook: z.boolean().optional() -}); -var StartDeviceAuthOutputSchema = z.object({ - deviceCode: z.string(), - userCode: z.string(), - verificationUri: z.string().url(), - expiresIn: z.number().int().positive(), - interval: z.number().int().positive() -}); -var PollDeviceAuthInputSchema = z.object({ - deviceCode: z.string() -}); -var PollDeviceAuthOutputSchema = z.discriminatedUnion("status", [ - z.object({ - status: z.literal("pending"), - expiresIn: z.number().int().nonnegative() - }), - z.object({ - status: z.literal("authorized"), - bootstrapToken: z.string(), - expiresIn: z.number().int().nonnegative().optional() - }), - z.object({ - status: z.literal("expired") - }), - z.object({ - status: z.literal("denied") - }) -]); -var BootstrapInputSchema = z.object({ - bootstrapToken: z.string(), - webhookUrl: z.string().url().optional(), - projectName: z.string().optional(), - forceNewWebhook: z.boolean().optional() -}); -var BootstrapOutputSchema = z.object({ - apiKey: z.string(), - apiKeyPreview: z.string(), - apiKeyId: z.string(), - webhookId: z.string(), - webhookSecret: z.string(), - organizationId: z.string(), - webhookUrl: z.string().url() -}); - -export { - StartDeviceAuthInputSchema, - StartDeviceAuthOutputSchema, - PollDeviceAuthInputSchema, - PollDeviceAuthOutputSchema, - BootstrapInputSchema, - BootstrapOutputSchema -}; diff --git a/dist/chunk-Y6DXID65.js b/dist/chunk-Y6DXID65.js deleted file mode 100644 index ad20da6..0000000 --- a/dist/chunk-Y6DXID65.js +++ /dev/null @@ -1,35 +0,0 @@ -import { - CurrencySchema -} from "./chunk-6M6LFZ3U.js"; - -// src/contracts/products.ts -import { oc } from "@orpc/contract"; -import { z } from "zod"; -var ProductPriceSchema = z.object({ - id: z.string(), - amountType: z.enum(["FIXED", "CUSTOM", "FREE"]), - priceAmount: z.number().nullable(), - currency: CurrencySchema -}); -var ProductSchema = z.object({ - id: z.string(), - name: z.string(), - description: z.string().nullable(), - recurringInterval: z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(), - prices: z.array(ProductPriceSchema) -}); -var ListProductsOutputSchema = z.object({ - products: z.array(ProductSchema) -}); -var listProductsContract = oc.input(z.object({}).optional()).output(ListProductsOutputSchema); -var products = { - list: listProductsContract -}; - -export { - ProductPriceSchema, - ProductSchema, - ListProductsOutputSchema, - listProductsContract, - products -}; diff --git a/dist/contracts/checkout.cjs b/dist/contracts/checkout.cjs deleted file mode 100644 index b466fb7..0000000 --- a/dist/contracts/checkout.cjs +++ /dev/null @@ -1,351 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/contracts/checkout.ts -var checkout_exports = {}; -__export(checkout_exports, { - ApplyDiscountCodeInputSchema: () => ApplyDiscountCodeInputSchema, - ConfirmCheckoutInputSchema: () => ConfirmCheckoutInputSchema, - CreateCheckoutInputSchema: () => CreateCheckoutInputSchema, - CustomerFieldSchema: () => CustomerFieldSchema2, - CustomerInputSchema: () => CustomerInputSchema, - GetCheckoutInputSchema: () => GetCheckoutInputSchema, - PaymentReceivedInputSchema: () => PaymentReceivedInputSchema, - RegisterInvoiceInputSchema: () => RegisterInvoiceInputSchema, - applyDiscountCodeContract: () => applyDiscountCodeContract, - checkout: () => checkout, - confirmCheckoutContract: () => confirmCheckoutContract, - createCheckoutContract: () => createCheckoutContract, - getCheckoutContract: () => getCheckoutContract, - paymentReceivedContract: () => paymentReceivedContract, - registerInvoiceContract: () => registerInvoiceContract -}); -module.exports = __toCommonJS(checkout_exports); -var import_contract = require("@orpc/contract"); -var import_zod5 = require("zod"); - -// src/schemas/checkout.ts -var import_zod4 = require("zod"); - -// src/schemas/currency.ts -var import_zod = require("zod"); -var CurrencySchema = import_zod.z.enum(["USD", "SAT"]); - -// src/schemas/invoice.ts -var import_zod2 = require("zod"); -var BaseInvoiceSchema = import_zod2.z.object({ - invoice: import_zod2.z.string(), - expiresAt: import_zod2.z.date(), - paymentHash: import_zod2.z.string(), - amountSats: import_zod2.z.number().nullable(), - amountSatsReceived: import_zod2.z.number().nullable(), - currency: CurrencySchema, - fiatAmount: import_zod2.z.number().nullable(), - btcPrice: import_zod2.z.number().nullable() -}); -var FixedAmountPendingInvoiceSchema = BaseInvoiceSchema.extend({ - amountSats: import_zod2.z.number(), - fiatAmount: import_zod2.z.number(), - btcPrice: import_zod2.z.number() -}); -var DynamicAmountPendingInvoiceSchema = BaseInvoiceSchema; -var PaidInvoiceSchema = FixedAmountPendingInvoiceSchema.extend({ - amountSatsReceived: import_zod2.z.number() -}); - -// src/schemas/product.ts -var import_zod3 = require("zod"); -var CheckoutProductPriceSchema = import_zod3.z.object({ - id: import_zod3.z.string(), - amountType: import_zod3.z.enum(["FIXED", "CUSTOM"]), - priceAmount: import_zod3.z.number().nullable(), - currency: CurrencySchema -}); -var CheckoutProductSchema = import_zod3.z.object({ - id: import_zod3.z.string(), - name: import_zod3.z.string(), - description: import_zod3.z.string().nullable(), - recurringInterval: import_zod3.z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(), - prices: import_zod3.z.array(CheckoutProductPriceSchema) -}); - -// src/schemas/checkout.ts -var CustomerFieldSchema = import_zod4.z.string().min(1); -var CustomerOutputSchema = import_zod4.z.object({ - name: import_zod4.z.string().nullish(), - email: import_zod4.z.string().email().nullish(), - externalId: import_zod4.z.string().nullish() -}).catchall(import_zod4.z.string()); -var BaseCheckoutSchema = import_zod4.z.object({ - id: import_zod4.z.string(), - createdAt: import_zod4.z.date(), - clientSecret: import_zod4.z.string(), - type: import_zod4.z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]), - status: import_zod4.z.enum([ - "UNCONFIRMED", - "CONFIRMED", - "PENDING_PAYMENT", - "PAYMENT_RECEIVED", - "EXPIRED" - ]), - organizationId: import_zod4.z.string(), - expiresAt: import_zod4.z.date(), - userMetadata: import_zod4.z.record(import_zod4.z.any()).nullable(), - customFieldData: import_zod4.z.record(import_zod4.z.any()).nullable(), - currency: CurrencySchema, - allowDiscountCodes: import_zod4.z.boolean(), - /** - * Array of customer fields required at checkout. - * @example ['email'] - email required - * @example ['email', 'name'] - both required - */ - requireCustomerData: import_zod4.z.array(CustomerFieldSchema).nullable(), - successUrl: import_zod4.z.string().nullable(), - /** - * Customer data associated with this checkout. - */ - customer: CustomerOutputSchema.nullable(), - customerBillingAddress: import_zod4.z.record(import_zod4.z.any()).nullable(), - products: import_zod4.z.array(CheckoutProductSchema).nullable(), - /** - * The selected product ID (from the products array). - * For PRODUCTS checkouts, this is the product the customer has chosen. - * null for AMOUNT/TOP_UP checkouts. - */ - productId: import_zod4.z.string().nullable(), - /** - * The selected product price ID. - * References a price from the selected product's prices array. - * null for AMOUNT/TOP_UP checkouts. - */ - productPriceId: import_zod4.z.string().nullable(), - /** - * User-provided amount for CUSTOM price products. - * Only set when the selected price has amountType: CUSTOM. - */ - customAmount: import_zod4.z.number().nullable(), - /** - * The selected product with full details (convenience field). - * Same shape as items in the products array. - * null if no product is selected. - */ - product: CheckoutProductSchema.nullable(), - providedAmount: import_zod4.z.number().nullable(), - totalAmount: import_zod4.z.number().nullable(), - discountAmount: import_zod4.z.number().nullable(), - netAmount: import_zod4.z.number().nullable(), - taxAmount: import_zod4.z.number().nullable(), - invoiceAmountSats: import_zod4.z.number().nullable(), - invoiceScid: import_zod4.z.string().nullable(), - btcPrice: import_zod4.z.number().nullable(), - invoice: BaseInvoiceSchema.nullable() -}); -var AmountFieldsSchema = import_zod4.z.object({ - totalAmount: import_zod4.z.number(), - discountAmount: import_zod4.z.number(), - netAmount: import_zod4.z.number(), - taxAmount: import_zod4.z.number(), - invoiceAmountSats: import_zod4.z.number(), - btcPrice: import_zod4.z.number() -}); -var ExpiredCheckoutSchema = BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("EXPIRED"), - type: import_zod4.z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]) -}); -var UnconfirmedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ - BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("UNCONFIRMED"), - type: import_zod4.z.literal("PRODUCTS"), - products: import_zod4.z.array(CheckoutProductSchema).nonempty() - }), - BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("UNCONFIRMED"), - type: import_zod4.z.literal("AMOUNT"), - providedAmount: import_zod4.z.number() - }), - BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("UNCONFIRMED"), - type: import_zod4.z.literal("TOP_UP") - }) -]); -var ConfirmedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("CONFIRMED"), - type: import_zod4.z.literal("PRODUCTS"), - products: import_zod4.z.array(CheckoutProductSchema).nonempty() - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("CONFIRMED"), - type: import_zod4.z.literal("AMOUNT"), - providedAmount: import_zod4.z.number() - }), - BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("CONFIRMED"), - type: import_zod4.z.literal("TOP_UP") - }) -]); -var PendingPaymentCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("PENDING_PAYMENT"), - type: import_zod4.z.literal("PRODUCTS"), - products: import_zod4.z.array(CheckoutProductSchema).nonempty(), - invoice: FixedAmountPendingInvoiceSchema - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("PENDING_PAYMENT"), - type: import_zod4.z.literal("AMOUNT"), - providedAmount: import_zod4.z.number(), - invoice: FixedAmountPendingInvoiceSchema - }), - BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("PENDING_PAYMENT"), - type: import_zod4.z.literal("TOP_UP"), - invoice: DynamicAmountPendingInvoiceSchema - }) -]); -var PaymentReceivedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("PAYMENT_RECEIVED"), - type: import_zod4.z.literal("PRODUCTS"), - products: import_zod4.z.array(CheckoutProductSchema).nonempty(), - invoice: PaidInvoiceSchema - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("PAYMENT_RECEIVED"), - type: import_zod4.z.literal("AMOUNT"), - providedAmount: import_zod4.z.number(), - invoice: PaidInvoiceSchema - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("PAYMENT_RECEIVED"), - type: import_zod4.z.literal("TOP_UP"), - invoice: PaidInvoiceSchema - }) -]); -var CheckoutSchema = import_zod4.z.union([ - UnconfirmedCheckoutSchema, - ConfirmedCheckoutSchema, - PendingPaymentCheckoutSchema, - PaymentReceivedCheckoutSchema, - ExpiredCheckoutSchema -]); - -// src/contracts/checkout.ts -var emptyStringToUndefined = import_zod5.z.string().transform((val) => val.trim() === "" ? void 0 : val); -var emailOrEmpty = import_zod5.z.string().email().optional().or(import_zod5.z.literal("")); -var CustomerFieldSchema2 = import_zod5.z.string().min(1); -var CustomerInputSchema = import_zod5.z.object({ - name: emptyStringToUndefined.optional(), - email: emailOrEmpty, - externalId: emptyStringToUndefined.optional() -}).catchall(import_zod5.z.string()); -var CreateCheckoutInputSchema = import_zod5.z.object({ - nodeId: import_zod5.z.string(), - amount: import_zod5.z.number().optional(), - currency: CurrencySchema.optional(), - products: import_zod5.z.array(import_zod5.z.string()).optional(), - successUrl: import_zod5.z.string().optional(), - allowDiscountCodes: import_zod5.z.boolean().optional(), - metadata: import_zod5.z.record(import_zod5.z.string(), import_zod5.z.any()).optional(), - /** - * Customer data for this checkout. - */ - customer: CustomerInputSchema.optional(), - /** - * Array of customer fields to require at checkout. - * If a field is listed here and not provided, the checkout UI will prompt for it. - * @example ['email'] - require email - * @example ['email', 'name'] - require both - */ - requireCustomerData: import_zod5.z.array(CustomerFieldSchema2).optional() -}); -var ConfirmCheckoutInputSchema = import_zod5.z.object({ - checkoutId: import_zod5.z.string(), - /** - * Customer data provided at confirm time. - */ - customer: CustomerInputSchema.optional(), - /** - * Product selection at confirm time. - * - undefined or [] = keep current selection - * - [{ productId }] = change selection to this product - * - priceAmount required if selected price has amountType: CUSTOM - * - * Currently limited to single selection (max 1 item). - */ - products: import_zod5.z.array( - import_zod5.z.object({ - productId: import_zod5.z.string(), - priceAmount: import_zod5.z.number().optional() - }) - ).max(1).optional() -}); -var ApplyDiscountCodeInputSchema = import_zod5.z.object({ - checkoutId: import_zod5.z.string(), - discountCode: import_zod5.z.string() -}); -var RegisterInvoiceInputSchema = import_zod5.z.object({ - nodeId: import_zod5.z.string(), - scid: import_zod5.z.string(), - checkoutId: import_zod5.z.string(), - invoice: import_zod5.z.string(), - paymentHash: import_zod5.z.string(), - invoiceExpiresAt: import_zod5.z.date() -}); -var PaymentReceivedInputSchema = import_zod5.z.object({ - payments: import_zod5.z.array( - import_zod5.z.object({ - paymentHash: import_zod5.z.string(), - amountSats: import_zod5.z.number(), - sandbox: import_zod5.z.boolean().default(false) - }) - ) -}); -var GetCheckoutInputSchema = import_zod5.z.object({ id: import_zod5.z.string() }); -var createCheckoutContract = import_contract.oc.input(CreateCheckoutInputSchema).output(CheckoutSchema); -var applyDiscountCodeContract = import_contract.oc.input(ApplyDiscountCodeInputSchema).output(CheckoutSchema); -var confirmCheckoutContract = import_contract.oc.input(ConfirmCheckoutInputSchema).output(CheckoutSchema); -var registerInvoiceContract = import_contract.oc.input(RegisterInvoiceInputSchema).output(CheckoutSchema); -var getCheckoutContract = import_contract.oc.input(GetCheckoutInputSchema).output(CheckoutSchema); -var paymentReceivedContract = import_contract.oc.input(PaymentReceivedInputSchema).output(import_zod5.z.object({ ok: import_zod5.z.boolean() })); -var checkout = { - get: getCheckoutContract, - create: createCheckoutContract, - confirm: confirmCheckoutContract, - registerInvoice: registerInvoiceContract, - paymentReceived: paymentReceivedContract -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - ApplyDiscountCodeInputSchema, - ConfirmCheckoutInputSchema, - CreateCheckoutInputSchema, - CustomerFieldSchema, - CustomerInputSchema, - GetCheckoutInputSchema, - PaymentReceivedInputSchema, - RegisterInvoiceInputSchema, - applyDiscountCodeContract, - checkout, - confirmCheckoutContract, - createCheckoutContract, - getCheckoutContract, - paymentReceivedContract, - registerInvoiceContract -}); diff --git a/dist/contracts/checkout.d.cts b/dist/contracts/checkout.d.cts deleted file mode 100644 index b311cb6..0000000 --- a/dist/contracts/checkout.d.cts +++ /dev/null @@ -1,34899 +0,0 @@ -import * as _orpc_contract from '@orpc/contract'; -import { z } from 'zod'; - -/** - * Valid fields that can be required at checkout time. - * - Standard fields: 'email', 'name' (checked against customer.email/name) - * - Any other string is a custom field (checked against customer[field]) - * - * @example ['email'] - require email - * @example ['email', 'name'] - require both email and name - * @example ['email', 'company'] - require email and company - */ -declare const CustomerFieldSchema: z.ZodString; -type CustomerField = string; -/** - * Customer data object for checkout. - * Flat structure - standard fields (name, email, externalId) plus any custom string fields. - * Empty strings are treated as undefined (not provided). - * - * @example { name: "John", email: "john@example.com", externalId: "user_123", company: "Acme" } - */ -declare const CustomerInputSchema: z.ZodObject<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; -}, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; -}, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; -}, z.ZodString, "strip">>; -type CustomerInput = z.infer; -declare const CreateCheckoutInputSchema: z.ZodObject<{ - nodeId: z.ZodString; - amount: z.ZodOptional; - currency: z.ZodOptional>; - products: z.ZodOptional>; - successUrl: z.ZodOptional; - allowDiscountCodes: z.ZodOptional; - metadata: z.ZodOptional>; - /** - * Customer data for this checkout. - */ - customer: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - /** - * Array of customer fields to require at checkout. - * If a field is listed here and not provided, the checkout UI will prompt for it. - * @example ['email'] - require email - * @example ['email', 'name'] - require both - */ - requireCustomerData: z.ZodOptional>; -}, "strip", z.ZodTypeAny, { - nodeId: string; - amount?: number | undefined; - currency?: "USD" | "SAT" | undefined; - products?: string[] | undefined; - successUrl?: string | undefined; - allowDiscountCodes?: boolean | undefined; - metadata?: Record | undefined; - customer?: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; - requireCustomerData?: string[] | undefined; -}, { - nodeId: string; - amount?: number | undefined; - currency?: "USD" | "SAT" | undefined; - products?: string[] | undefined; - successUrl?: string | undefined; - allowDiscountCodes?: boolean | undefined; - metadata?: Record | undefined; - customer?: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; - requireCustomerData?: string[] | undefined; -}>; -declare const ConfirmCheckoutInputSchema: z.ZodObject<{ - checkoutId: z.ZodString; - /** - * Customer data provided at confirm time. - */ - customer: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - /** - * Product selection at confirm time. - * - undefined or [] = keep current selection - * - [{ productId }] = change selection to this product - * - priceAmount required if selected price has amountType: CUSTOM - * - * Currently limited to single selection (max 1 item). - */ - products: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - productId: string; - priceAmount?: number | undefined; - }, { - productId: string; - priceAmount?: number | undefined; - }>, "many">>; -}, "strip", z.ZodTypeAny, { - checkoutId: string; - products?: { - productId: string; - priceAmount?: number | undefined; - }[] | undefined; - customer?: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; -}, { - checkoutId: string; - products?: { - productId: string; - priceAmount?: number | undefined; - }[] | undefined; - customer?: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; -}>; -declare const ApplyDiscountCodeInputSchema: z.ZodObject<{ - checkoutId: z.ZodString; - discountCode: z.ZodString; -}, "strip", z.ZodTypeAny, { - checkoutId: string; - discountCode: string; -}, { - checkoutId: string; - discountCode: string; -}>; -declare const RegisterInvoiceInputSchema: z.ZodObject<{ - nodeId: z.ZodString; - scid: z.ZodString; - checkoutId: z.ZodString; - invoice: z.ZodString; - paymentHash: z.ZodString; - invoiceExpiresAt: z.ZodDate; -}, "strip", z.ZodTypeAny, { - nodeId: string; - checkoutId: string; - scid: string; - invoice: string; - paymentHash: string; - invoiceExpiresAt: Date; -}, { - nodeId: string; - checkoutId: string; - scid: string; - invoice: string; - paymentHash: string; - invoiceExpiresAt: Date; -}>; -declare const PaymentReceivedInputSchema: z.ZodObject<{ - payments: z.ZodArray; - }, "strip", z.ZodTypeAny, { - paymentHash: string; - amountSats: number; - sandbox: boolean; - }, { - paymentHash: string; - amountSats: number; - sandbox?: boolean | undefined; - }>, "many">; -}, "strip", z.ZodTypeAny, { - payments: { - paymentHash: string; - amountSats: number; - sandbox: boolean; - }[]; -}, { - payments: { - paymentHash: string; - amountSats: number; - sandbox?: boolean | undefined; - }[]; -}>; -declare const GetCheckoutInputSchema: z.ZodObject<{ - id: z.ZodString; -}, "strip", z.ZodTypeAny, { - id: string; -}, { - id: string; -}>; -type CreateCheckout = z.infer; -type ConfirmCheckout = z.infer; -type RegisterInvoice = z.infer; -type PaymentReceived = z.infer; -declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWithInputOutput; - currency: z.ZodOptional>; - products: z.ZodOptional>; - successUrl: z.ZodOptional; - allowDiscountCodes: z.ZodOptional; - metadata: z.ZodOptional>; - /** - * Customer data for this checkout. - */ - customer: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - /** - * Array of customer fields to require at checkout. - * If a field is listed here and not provided, the checkout UI will prompt for it. - * @example ['email'] - require email - * @example ['email', 'name'] - require both - */ - requireCustomerData: z.ZodOptional>; -}, "strip", z.ZodTypeAny, { - nodeId: string; - amount?: number | undefined; - currency?: "USD" | "SAT" | undefined; - products?: string[] | undefined; - successUrl?: string | undefined; - allowDiscountCodes?: boolean | undefined; - metadata?: Record | undefined; - customer?: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; - requireCustomerData?: string[] | undefined; -}, { - nodeId: string; - amount?: number | undefined; - currency?: "USD" | "SAT" | undefined; - products?: string[] | undefined; - successUrl?: string | undefined; - allowDiscountCodes?: boolean | undefined; - metadata?: Record | undefined; - customer?: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; - requireCustomerData?: string[] | undefined; -}>, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; -}, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, Record, Record>; -declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; -}, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, Record, Record>; -declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWithInputOutput>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - /** - * Product selection at confirm time. - * - undefined or [] = keep current selection - * - [{ productId }] = change selection to this product - * - priceAmount required if selected price has amountType: CUSTOM - * - * Currently limited to single selection (max 1 item). - */ - products: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - productId: string; - priceAmount?: number | undefined; - }, { - productId: string; - priceAmount?: number | undefined; - }>, "many">>; -}, "strip", z.ZodTypeAny, { - checkoutId: string; - products?: { - productId: string; - priceAmount?: number | undefined; - }[] | undefined; - customer?: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; -}, { - checkoutId: string; - products?: { - productId: string; - priceAmount?: number | undefined; - }[] | undefined; - customer?: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; -}>, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; -}, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, Record, Record>; -declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; -}, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, Record, Record>; -declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; -}, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, Record, Record>; -declare const paymentReceivedContract: _orpc_contract.ContractProcedureBuilderWithInputOutput; - }, "strip", z.ZodTypeAny, { - paymentHash: string; - amountSats: number; - sandbox: boolean; - }, { - paymentHash: string; - amountSats: number; - sandbox?: boolean | undefined; - }>, "many">; -}, "strip", z.ZodTypeAny, { - payments: { - paymentHash: string; - amountSats: number; - sandbox: boolean; - }[]; -}, { - payments: { - paymentHash: string; - amountSats: number; - sandbox?: boolean | undefined; - }[]; -}>, z.ZodObject<{ - ok: z.ZodBoolean; -}, "strip", z.ZodTypeAny, { - ok: boolean; -}, { - ok: boolean; -}>, Record, Record>; -declare const checkout: { - get: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; - }, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, Record, Record>; - create: _orpc_contract.ContractProcedureBuilderWithInputOutput; - currency: z.ZodOptional>; - products: z.ZodOptional>; - successUrl: z.ZodOptional; - allowDiscountCodes: z.ZodOptional; - metadata: z.ZodOptional>; - /** - * Customer data for this checkout. - */ - customer: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - /** - * Array of customer fields to require at checkout. - * If a field is listed here and not provided, the checkout UI will prompt for it. - * @example ['email'] - require email - * @example ['email', 'name'] - require both - */ - requireCustomerData: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - nodeId: string; - amount?: number | undefined; - currency?: "USD" | "SAT" | undefined; - products?: string[] | undefined; - successUrl?: string | undefined; - allowDiscountCodes?: boolean | undefined; - metadata?: Record | undefined; - customer?: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; - requireCustomerData?: string[] | undefined; - }, { - nodeId: string; - amount?: number | undefined; - currency?: "USD" | "SAT" | undefined; - products?: string[] | undefined; - successUrl?: string | undefined; - allowDiscountCodes?: boolean | undefined; - metadata?: Record | undefined; - customer?: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; - requireCustomerData?: string[] | undefined; - }>, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; - }, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, Record, Record>; - confirm: _orpc_contract.ContractProcedureBuilderWithInputOutput>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - /** - * Product selection at confirm time. - * - undefined or [] = keep current selection - * - [{ productId }] = change selection to this product - * - priceAmount required if selected price has amountType: CUSTOM - * - * Currently limited to single selection (max 1 item). - */ - products: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - productId: string; - priceAmount?: number | undefined; - }, { - productId: string; - priceAmount?: number | undefined; - }>, "many">>; - }, "strip", z.ZodTypeAny, { - checkoutId: string; - products?: { - productId: string; - priceAmount?: number | undefined; - }[] | undefined; - customer?: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; - }, { - checkoutId: string; - products?: { - productId: string; - priceAmount?: number | undefined; - }[] | undefined; - customer?: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; - }>, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; - }, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, Record, Record>; - registerInvoice: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; - }, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, Record, Record>; - paymentReceived: _orpc_contract.ContractProcedureBuilderWithInputOutput; - }, "strip", z.ZodTypeAny, { - paymentHash: string; - amountSats: number; - sandbox: boolean; - }, { - paymentHash: string; - amountSats: number; - sandbox?: boolean | undefined; - }>, "many">; - }, "strip", z.ZodTypeAny, { - payments: { - paymentHash: string; - amountSats: number; - sandbox: boolean; - }[]; - }, { - payments: { - paymentHash: string; - amountSats: number; - sandbox?: boolean | undefined; - }[]; - }>, z.ZodObject<{ - ok: z.ZodBoolean; - }, "strip", z.ZodTypeAny, { - ok: boolean; - }, { - ok: boolean; - }>, Record, Record>; -}; - -export { ApplyDiscountCodeInputSchema, type ConfirmCheckout, ConfirmCheckoutInputSchema, type CreateCheckout, CreateCheckoutInputSchema, type CustomerField, CustomerFieldSchema, type CustomerInput, CustomerInputSchema, GetCheckoutInputSchema, type PaymentReceived, PaymentReceivedInputSchema, type RegisterInvoice, RegisterInvoiceInputSchema, applyDiscountCodeContract, checkout, confirmCheckoutContract, createCheckoutContract, getCheckoutContract, paymentReceivedContract, registerInvoiceContract }; diff --git a/dist/contracts/checkout.d.ts b/dist/contracts/checkout.d.ts deleted file mode 100644 index b311cb6..0000000 --- a/dist/contracts/checkout.d.ts +++ /dev/null @@ -1,34899 +0,0 @@ -import * as _orpc_contract from '@orpc/contract'; -import { z } from 'zod'; - -/** - * Valid fields that can be required at checkout time. - * - Standard fields: 'email', 'name' (checked against customer.email/name) - * - Any other string is a custom field (checked against customer[field]) - * - * @example ['email'] - require email - * @example ['email', 'name'] - require both email and name - * @example ['email', 'company'] - require email and company - */ -declare const CustomerFieldSchema: z.ZodString; -type CustomerField = string; -/** - * Customer data object for checkout. - * Flat structure - standard fields (name, email, externalId) plus any custom string fields. - * Empty strings are treated as undefined (not provided). - * - * @example { name: "John", email: "john@example.com", externalId: "user_123", company: "Acme" } - */ -declare const CustomerInputSchema: z.ZodObject<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; -}, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; -}, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; -}, z.ZodString, "strip">>; -type CustomerInput = z.infer; -declare const CreateCheckoutInputSchema: z.ZodObject<{ - nodeId: z.ZodString; - amount: z.ZodOptional; - currency: z.ZodOptional>; - products: z.ZodOptional>; - successUrl: z.ZodOptional; - allowDiscountCodes: z.ZodOptional; - metadata: z.ZodOptional>; - /** - * Customer data for this checkout. - */ - customer: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - /** - * Array of customer fields to require at checkout. - * If a field is listed here and not provided, the checkout UI will prompt for it. - * @example ['email'] - require email - * @example ['email', 'name'] - require both - */ - requireCustomerData: z.ZodOptional>; -}, "strip", z.ZodTypeAny, { - nodeId: string; - amount?: number | undefined; - currency?: "USD" | "SAT" | undefined; - products?: string[] | undefined; - successUrl?: string | undefined; - allowDiscountCodes?: boolean | undefined; - metadata?: Record | undefined; - customer?: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; - requireCustomerData?: string[] | undefined; -}, { - nodeId: string; - amount?: number | undefined; - currency?: "USD" | "SAT" | undefined; - products?: string[] | undefined; - successUrl?: string | undefined; - allowDiscountCodes?: boolean | undefined; - metadata?: Record | undefined; - customer?: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; - requireCustomerData?: string[] | undefined; -}>; -declare const ConfirmCheckoutInputSchema: z.ZodObject<{ - checkoutId: z.ZodString; - /** - * Customer data provided at confirm time. - */ - customer: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - /** - * Product selection at confirm time. - * - undefined or [] = keep current selection - * - [{ productId }] = change selection to this product - * - priceAmount required if selected price has amountType: CUSTOM - * - * Currently limited to single selection (max 1 item). - */ - products: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - productId: string; - priceAmount?: number | undefined; - }, { - productId: string; - priceAmount?: number | undefined; - }>, "many">>; -}, "strip", z.ZodTypeAny, { - checkoutId: string; - products?: { - productId: string; - priceAmount?: number | undefined; - }[] | undefined; - customer?: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; -}, { - checkoutId: string; - products?: { - productId: string; - priceAmount?: number | undefined; - }[] | undefined; - customer?: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; -}>; -declare const ApplyDiscountCodeInputSchema: z.ZodObject<{ - checkoutId: z.ZodString; - discountCode: z.ZodString; -}, "strip", z.ZodTypeAny, { - checkoutId: string; - discountCode: string; -}, { - checkoutId: string; - discountCode: string; -}>; -declare const RegisterInvoiceInputSchema: z.ZodObject<{ - nodeId: z.ZodString; - scid: z.ZodString; - checkoutId: z.ZodString; - invoice: z.ZodString; - paymentHash: z.ZodString; - invoiceExpiresAt: z.ZodDate; -}, "strip", z.ZodTypeAny, { - nodeId: string; - checkoutId: string; - scid: string; - invoice: string; - paymentHash: string; - invoiceExpiresAt: Date; -}, { - nodeId: string; - checkoutId: string; - scid: string; - invoice: string; - paymentHash: string; - invoiceExpiresAt: Date; -}>; -declare const PaymentReceivedInputSchema: z.ZodObject<{ - payments: z.ZodArray; - }, "strip", z.ZodTypeAny, { - paymentHash: string; - amountSats: number; - sandbox: boolean; - }, { - paymentHash: string; - amountSats: number; - sandbox?: boolean | undefined; - }>, "many">; -}, "strip", z.ZodTypeAny, { - payments: { - paymentHash: string; - amountSats: number; - sandbox: boolean; - }[]; -}, { - payments: { - paymentHash: string; - amountSats: number; - sandbox?: boolean | undefined; - }[]; -}>; -declare const GetCheckoutInputSchema: z.ZodObject<{ - id: z.ZodString; -}, "strip", z.ZodTypeAny, { - id: string; -}, { - id: string; -}>; -type CreateCheckout = z.infer; -type ConfirmCheckout = z.infer; -type RegisterInvoice = z.infer; -type PaymentReceived = z.infer; -declare const createCheckoutContract: _orpc_contract.ContractProcedureBuilderWithInputOutput; - currency: z.ZodOptional>; - products: z.ZodOptional>; - successUrl: z.ZodOptional; - allowDiscountCodes: z.ZodOptional; - metadata: z.ZodOptional>; - /** - * Customer data for this checkout. - */ - customer: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - /** - * Array of customer fields to require at checkout. - * If a field is listed here and not provided, the checkout UI will prompt for it. - * @example ['email'] - require email - * @example ['email', 'name'] - require both - */ - requireCustomerData: z.ZodOptional>; -}, "strip", z.ZodTypeAny, { - nodeId: string; - amount?: number | undefined; - currency?: "USD" | "SAT" | undefined; - products?: string[] | undefined; - successUrl?: string | undefined; - allowDiscountCodes?: boolean | undefined; - metadata?: Record | undefined; - customer?: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; - requireCustomerData?: string[] | undefined; -}, { - nodeId: string; - amount?: number | undefined; - currency?: "USD" | "SAT" | undefined; - products?: string[] | undefined; - successUrl?: string | undefined; - allowDiscountCodes?: boolean | undefined; - metadata?: Record | undefined; - customer?: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; - requireCustomerData?: string[] | undefined; -}>, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; -}, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, Record, Record>; -declare const applyDiscountCodeContract: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; -}, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, Record, Record>; -declare const confirmCheckoutContract: _orpc_contract.ContractProcedureBuilderWithInputOutput>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - /** - * Product selection at confirm time. - * - undefined or [] = keep current selection - * - [{ productId }] = change selection to this product - * - priceAmount required if selected price has amountType: CUSTOM - * - * Currently limited to single selection (max 1 item). - */ - products: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - productId: string; - priceAmount?: number | undefined; - }, { - productId: string; - priceAmount?: number | undefined; - }>, "many">>; -}, "strip", z.ZodTypeAny, { - checkoutId: string; - products?: { - productId: string; - priceAmount?: number | undefined; - }[] | undefined; - customer?: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; -}, { - checkoutId: string; - products?: { - productId: string; - priceAmount?: number | undefined; - }[] | undefined; - customer?: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; -}>, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; -}, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, Record, Record>; -declare const registerInvoiceContract: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; -}, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, Record, Record>; -declare const getCheckoutContract: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; -}, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, Record, Record>; -declare const paymentReceivedContract: _orpc_contract.ContractProcedureBuilderWithInputOutput; - }, "strip", z.ZodTypeAny, { - paymentHash: string; - amountSats: number; - sandbox: boolean; - }, { - paymentHash: string; - amountSats: number; - sandbox?: boolean | undefined; - }>, "many">; -}, "strip", z.ZodTypeAny, { - payments: { - paymentHash: string; - amountSats: number; - sandbox: boolean; - }[]; -}, { - payments: { - paymentHash: string; - amountSats: number; - sandbox?: boolean | undefined; - }[]; -}>, z.ZodObject<{ - ok: z.ZodBoolean; -}, "strip", z.ZodTypeAny, { - ok: boolean; -}, { - ok: boolean; -}>, Record, Record>; -declare const checkout: { - get: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; - }, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, Record, Record>; - create: _orpc_contract.ContractProcedureBuilderWithInputOutput; - currency: z.ZodOptional>; - products: z.ZodOptional>; - successUrl: z.ZodOptional; - allowDiscountCodes: z.ZodOptional; - metadata: z.ZodOptional>; - /** - * Customer data for this checkout. - */ - customer: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - /** - * Array of customer fields to require at checkout. - * If a field is listed here and not provided, the checkout UI will prompt for it. - * @example ['email'] - require email - * @example ['email', 'name'] - require both - */ - requireCustomerData: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - nodeId: string; - amount?: number | undefined; - currency?: "USD" | "SAT" | undefined; - products?: string[] | undefined; - successUrl?: string | undefined; - allowDiscountCodes?: boolean | undefined; - metadata?: Record | undefined; - customer?: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; - requireCustomerData?: string[] | undefined; - }, { - nodeId: string; - amount?: number | undefined; - currency?: "USD" | "SAT" | undefined; - products?: string[] | undefined; - successUrl?: string | undefined; - allowDiscountCodes?: boolean | undefined; - metadata?: Record | undefined; - customer?: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; - requireCustomerData?: string[] | undefined; - }>, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; - }, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, Record, Record>; - confirm: _orpc_contract.ContractProcedureBuilderWithInputOutput>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - /** - * Product selection at confirm time. - * - undefined or [] = keep current selection - * - [{ productId }] = change selection to this product - * - priceAmount required if selected price has amountType: CUSTOM - * - * Currently limited to single selection (max 1 item). - */ - products: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - productId: string; - priceAmount?: number | undefined; - }, { - productId: string; - priceAmount?: number | undefined; - }>, "many">>; - }, "strip", z.ZodTypeAny, { - checkoutId: string; - products?: { - productId: string; - priceAmount?: number | undefined; - }[] | undefined; - customer?: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; - }, { - checkoutId: string; - products?: { - productId: string; - priceAmount?: number | undefined; - }[] | undefined; - customer?: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodUnion<[z.ZodOptional, z.ZodLiteral<"">]>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | undefined; - }>, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; - }, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, Record, Record>; - registerInvoice: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; - }, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; - }, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - } & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; - }, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; - }, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, Record, Record>; - paymentReceived: _orpc_contract.ContractProcedureBuilderWithInputOutput; - }, "strip", z.ZodTypeAny, { - paymentHash: string; - amountSats: number; - sandbox: boolean; - }, { - paymentHash: string; - amountSats: number; - sandbox?: boolean | undefined; - }>, "many">; - }, "strip", z.ZodTypeAny, { - payments: { - paymentHash: string; - amountSats: number; - sandbox: boolean; - }[]; - }, { - payments: { - paymentHash: string; - amountSats: number; - sandbox?: boolean | undefined; - }[]; - }>, z.ZodObject<{ - ok: z.ZodBoolean; - }, "strip", z.ZodTypeAny, { - ok: boolean; - }, { - ok: boolean; - }>, Record, Record>; -}; - -export { ApplyDiscountCodeInputSchema, type ConfirmCheckout, ConfirmCheckoutInputSchema, type CreateCheckout, CreateCheckoutInputSchema, type CustomerField, CustomerFieldSchema, type CustomerInput, CustomerInputSchema, GetCheckoutInputSchema, type PaymentReceived, PaymentReceivedInputSchema, type RegisterInvoice, RegisterInvoiceInputSchema, applyDiscountCodeContract, checkout, confirmCheckoutContract, createCheckoutContract, getCheckoutContract, paymentReceivedContract, registerInvoiceContract }; diff --git a/dist/contracts/checkout.js b/dist/contracts/checkout.js deleted file mode 100644 index 4670c66..0000000 --- a/dist/contracts/checkout.js +++ /dev/null @@ -1,38 +0,0 @@ -import { - ApplyDiscountCodeInputSchema, - ConfirmCheckoutInputSchema, - CreateCheckoutInputSchema, - CustomerFieldSchema, - CustomerInputSchema, - GetCheckoutInputSchema, - PaymentReceivedInputSchema, - RegisterInvoiceInputSchema, - applyDiscountCodeContract, - checkout, - confirmCheckoutContract, - createCheckoutContract, - getCheckoutContract, - paymentReceivedContract, - registerInvoiceContract -} from "../chunk-4AJPTMW2.js"; -import "../chunk-CD2LZX3A.js"; -import "../chunk-T6X3KMH6.js"; -import "../chunk-TGG53ETU.js"; -import "../chunk-6M6LFZ3U.js"; -export { - ApplyDiscountCodeInputSchema, - ConfirmCheckoutInputSchema, - CreateCheckoutInputSchema, - CustomerFieldSchema, - CustomerInputSchema, - GetCheckoutInputSchema, - PaymentReceivedInputSchema, - RegisterInvoiceInputSchema, - applyDiscountCodeContract, - checkout, - confirmCheckoutContract, - createCheckoutContract, - getCheckoutContract, - paymentReceivedContract, - registerInvoiceContract -}; diff --git a/dist/contracts/onboarding.cjs b/dist/contracts/onboarding.cjs deleted file mode 100644 index 9ce03de..0000000 --- a/dist/contracts/onboarding.cjs +++ /dev/null @@ -1,96 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/contracts/onboarding.ts -var onboarding_exports = {}; -__export(onboarding_exports, { - bootstrapContract: () => bootstrapContract, - onboarding: () => onboarding, - pollDeviceAuthContract: () => pollDeviceAuthContract, - startDeviceAuthContract: () => startDeviceAuthContract -}); -module.exports = __toCommonJS(onboarding_exports); -var import_contract = require("@orpc/contract"); - -// src/schemas/onboarding.ts -var import_zod = require("zod"); -var StartDeviceAuthInputSchema = import_zod.z.object({ - clientDisplayName: import_zod.z.string().optional(), - webhookUrl: import_zod.z.string().url().optional(), - forceNewWebhook: import_zod.z.boolean().optional() -}); -var StartDeviceAuthOutputSchema = import_zod.z.object({ - deviceCode: import_zod.z.string(), - userCode: import_zod.z.string(), - verificationUri: import_zod.z.string().url(), - expiresIn: import_zod.z.number().int().positive(), - interval: import_zod.z.number().int().positive() -}); -var PollDeviceAuthInputSchema = import_zod.z.object({ - deviceCode: import_zod.z.string() -}); -var PollDeviceAuthOutputSchema = import_zod.z.discriminatedUnion("status", [ - import_zod.z.object({ - status: import_zod.z.literal("pending"), - expiresIn: import_zod.z.number().int().nonnegative() - }), - import_zod.z.object({ - status: import_zod.z.literal("authorized"), - bootstrapToken: import_zod.z.string(), - expiresIn: import_zod.z.number().int().nonnegative().optional() - }), - import_zod.z.object({ - status: import_zod.z.literal("expired") - }), - import_zod.z.object({ - status: import_zod.z.literal("denied") - }) -]); -var BootstrapInputSchema = import_zod.z.object({ - bootstrapToken: import_zod.z.string(), - webhookUrl: import_zod.z.string().url().optional(), - projectName: import_zod.z.string().optional(), - forceNewWebhook: import_zod.z.boolean().optional() -}); -var BootstrapOutputSchema = import_zod.z.object({ - apiKey: import_zod.z.string(), - apiKeyPreview: import_zod.z.string(), - apiKeyId: import_zod.z.string(), - webhookId: import_zod.z.string(), - webhookSecret: import_zod.z.string(), - organizationId: import_zod.z.string(), - webhookUrl: import_zod.z.string().url() -}); - -// src/contracts/onboarding.ts -var startDeviceAuthContract = import_contract.oc.input(StartDeviceAuthInputSchema).output(StartDeviceAuthOutputSchema); -var pollDeviceAuthContract = import_contract.oc.input(PollDeviceAuthInputSchema).output(PollDeviceAuthOutputSchema); -var bootstrapContract = import_contract.oc.input(BootstrapInputSchema).output(BootstrapOutputSchema); -var onboarding = { - startDeviceAuth: startDeviceAuthContract, - pollDeviceAuth: pollDeviceAuthContract, - bootstrap: bootstrapContract -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - bootstrapContract, - onboarding, - pollDeviceAuthContract, - startDeviceAuthContract -}); diff --git a/dist/contracts/onboarding.d.cts b/dist/contracts/onboarding.d.cts deleted file mode 100644 index e4ffa32..0000000 --- a/dist/contracts/onboarding.d.cts +++ /dev/null @@ -1,236 +0,0 @@ -import * as _orpc_contract from '@orpc/contract'; -import { z } from 'zod'; -import { BootstrapInputSchema, BootstrapOutputSchema, PollDeviceAuthInputSchema, PollDeviceAuthOutputSchema, StartDeviceAuthInputSchema, StartDeviceAuthOutputSchema } from '../schemas/onboarding.cjs'; - -type StartDeviceAuth = z.infer; -type StartDeviceAuthResponse = z.infer; -type PollDeviceAuth = z.infer; -type PollDeviceAuthResponse = z.infer; -type BootstrapOnboarding = z.infer; -type BootstrapOnboardingResponse = z.infer; -declare const startDeviceAuthContract: _orpc_contract.ContractProcedureBuilderWithInputOutput; - webhookUrl: z.ZodOptional; - forceNewWebhook: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - clientDisplayName?: string | undefined; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; -}, { - clientDisplayName?: string | undefined; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; -}>, z.ZodObject<{ - deviceCode: z.ZodString; - userCode: z.ZodString; - verificationUri: z.ZodString; - expiresIn: z.ZodNumber; - interval: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - deviceCode: string; - userCode: string; - verificationUri: string; - expiresIn: number; - interval: number; -}, { - deviceCode: string; - userCode: string; - verificationUri: string; - expiresIn: number; - interval: number; -}>, Record, Record>; -declare const pollDeviceAuthContract: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ - status: z.ZodLiteral<"pending">; - expiresIn: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "pending"; - expiresIn: number; -}, { - status: "pending"; - expiresIn: number; -}>, z.ZodObject<{ - status: z.ZodLiteral<"authorized">; - bootstrapToken: z.ZodString; - expiresIn: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - status: "authorized"; - bootstrapToken: string; - expiresIn?: number | undefined; -}, { - status: "authorized"; - bootstrapToken: string; - expiresIn?: number | undefined; -}>, z.ZodObject<{ - status: z.ZodLiteral<"expired">; -}, "strip", z.ZodTypeAny, { - status: "expired"; -}, { - status: "expired"; -}>, z.ZodObject<{ - status: z.ZodLiteral<"denied">; -}, "strip", z.ZodTypeAny, { - status: "denied"; -}, { - status: "denied"; -}>]>, Record, Record>; -declare const bootstrapContract: _orpc_contract.ContractProcedureBuilderWithInputOutput; - projectName: z.ZodOptional; - forceNewWebhook: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - bootstrapToken: string; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - projectName?: string | undefined; -}, { - bootstrapToken: string; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - projectName?: string | undefined; -}>, z.ZodObject<{ - apiKey: z.ZodString; - apiKeyPreview: z.ZodString; - apiKeyId: z.ZodString; - webhookId: z.ZodString; - webhookSecret: z.ZodString; - organizationId: z.ZodString; - webhookUrl: z.ZodString; -}, "strip", z.ZodTypeAny, { - organizationId: string; - webhookUrl: string; - apiKey: string; - apiKeyPreview: string; - apiKeyId: string; - webhookId: string; - webhookSecret: string; -}, { - organizationId: string; - webhookUrl: string; - apiKey: string; - apiKeyPreview: string; - apiKeyId: string; - webhookId: string; - webhookSecret: string; -}>, Record, Record>; -declare const onboarding: { - startDeviceAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput; - webhookUrl: z.ZodOptional; - forceNewWebhook: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - clientDisplayName?: string | undefined; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - }, { - clientDisplayName?: string | undefined; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - }>, z.ZodObject<{ - deviceCode: z.ZodString; - userCode: z.ZodString; - verificationUri: z.ZodString; - expiresIn: z.ZodNumber; - interval: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - deviceCode: string; - userCode: string; - verificationUri: string; - expiresIn: number; - interval: number; - }, { - deviceCode: string; - userCode: string; - verificationUri: string; - expiresIn: number; - interval: number; - }>, Record, Record>; - pollDeviceAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ - status: z.ZodLiteral<"pending">; - expiresIn: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "pending"; - expiresIn: number; - }, { - status: "pending"; - expiresIn: number; - }>, z.ZodObject<{ - status: z.ZodLiteral<"authorized">; - bootstrapToken: z.ZodString; - expiresIn: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - status: "authorized"; - bootstrapToken: string; - expiresIn?: number | undefined; - }, { - status: "authorized"; - bootstrapToken: string; - expiresIn?: number | undefined; - }>, z.ZodObject<{ - status: z.ZodLiteral<"expired">; - }, "strip", z.ZodTypeAny, { - status: "expired"; - }, { - status: "expired"; - }>, z.ZodObject<{ - status: z.ZodLiteral<"denied">; - }, "strip", z.ZodTypeAny, { - status: "denied"; - }, { - status: "denied"; - }>]>, Record, Record>; - bootstrap: _orpc_contract.ContractProcedureBuilderWithInputOutput; - projectName: z.ZodOptional; - forceNewWebhook: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - bootstrapToken: string; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - projectName?: string | undefined; - }, { - bootstrapToken: string; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - projectName?: string | undefined; - }>, z.ZodObject<{ - apiKey: z.ZodString; - apiKeyPreview: z.ZodString; - apiKeyId: z.ZodString; - webhookId: z.ZodString; - webhookSecret: z.ZodString; - organizationId: z.ZodString; - webhookUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - organizationId: string; - webhookUrl: string; - apiKey: string; - apiKeyPreview: string; - apiKeyId: string; - webhookId: string; - webhookSecret: string; - }, { - organizationId: string; - webhookUrl: string; - apiKey: string; - apiKeyPreview: string; - apiKeyId: string; - webhookId: string; - webhookSecret: string; - }>, Record, Record>; -}; - -export { type BootstrapOnboarding, type BootstrapOnboardingResponse, type PollDeviceAuth, type PollDeviceAuthResponse, type StartDeviceAuth, type StartDeviceAuthResponse, bootstrapContract, onboarding, pollDeviceAuthContract, startDeviceAuthContract }; diff --git a/dist/contracts/onboarding.d.ts b/dist/contracts/onboarding.d.ts deleted file mode 100644 index 8245867..0000000 --- a/dist/contracts/onboarding.d.ts +++ /dev/null @@ -1,236 +0,0 @@ -import * as _orpc_contract from '@orpc/contract'; -import { z } from 'zod'; -import { BootstrapInputSchema, BootstrapOutputSchema, PollDeviceAuthInputSchema, PollDeviceAuthOutputSchema, StartDeviceAuthInputSchema, StartDeviceAuthOutputSchema } from '../schemas/onboarding.js'; - -type StartDeviceAuth = z.infer; -type StartDeviceAuthResponse = z.infer; -type PollDeviceAuth = z.infer; -type PollDeviceAuthResponse = z.infer; -type BootstrapOnboarding = z.infer; -type BootstrapOnboardingResponse = z.infer; -declare const startDeviceAuthContract: _orpc_contract.ContractProcedureBuilderWithInputOutput; - webhookUrl: z.ZodOptional; - forceNewWebhook: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - clientDisplayName?: string | undefined; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; -}, { - clientDisplayName?: string | undefined; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; -}>, z.ZodObject<{ - deviceCode: z.ZodString; - userCode: z.ZodString; - verificationUri: z.ZodString; - expiresIn: z.ZodNumber; - interval: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - deviceCode: string; - userCode: string; - verificationUri: string; - expiresIn: number; - interval: number; -}, { - deviceCode: string; - userCode: string; - verificationUri: string; - expiresIn: number; - interval: number; -}>, Record, Record>; -declare const pollDeviceAuthContract: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ - status: z.ZodLiteral<"pending">; - expiresIn: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "pending"; - expiresIn: number; -}, { - status: "pending"; - expiresIn: number; -}>, z.ZodObject<{ - status: z.ZodLiteral<"authorized">; - bootstrapToken: z.ZodString; - expiresIn: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - status: "authorized"; - bootstrapToken: string; - expiresIn?: number | undefined; -}, { - status: "authorized"; - bootstrapToken: string; - expiresIn?: number | undefined; -}>, z.ZodObject<{ - status: z.ZodLiteral<"expired">; -}, "strip", z.ZodTypeAny, { - status: "expired"; -}, { - status: "expired"; -}>, z.ZodObject<{ - status: z.ZodLiteral<"denied">; -}, "strip", z.ZodTypeAny, { - status: "denied"; -}, { - status: "denied"; -}>]>, Record, Record>; -declare const bootstrapContract: _orpc_contract.ContractProcedureBuilderWithInputOutput; - projectName: z.ZodOptional; - forceNewWebhook: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - bootstrapToken: string; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - projectName?: string | undefined; -}, { - bootstrapToken: string; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - projectName?: string | undefined; -}>, z.ZodObject<{ - apiKey: z.ZodString; - apiKeyPreview: z.ZodString; - apiKeyId: z.ZodString; - webhookId: z.ZodString; - webhookSecret: z.ZodString; - organizationId: z.ZodString; - webhookUrl: z.ZodString; -}, "strip", z.ZodTypeAny, { - organizationId: string; - webhookUrl: string; - apiKey: string; - apiKeyPreview: string; - apiKeyId: string; - webhookId: string; - webhookSecret: string; -}, { - organizationId: string; - webhookUrl: string; - apiKey: string; - apiKeyPreview: string; - apiKeyId: string; - webhookId: string; - webhookSecret: string; -}>, Record, Record>; -declare const onboarding: { - startDeviceAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput; - webhookUrl: z.ZodOptional; - forceNewWebhook: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - clientDisplayName?: string | undefined; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - }, { - clientDisplayName?: string | undefined; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - }>, z.ZodObject<{ - deviceCode: z.ZodString; - userCode: z.ZodString; - verificationUri: z.ZodString; - expiresIn: z.ZodNumber; - interval: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - deviceCode: string; - userCode: string; - verificationUri: string; - expiresIn: number; - interval: number; - }, { - deviceCode: string; - userCode: string; - verificationUri: string; - expiresIn: number; - interval: number; - }>, Record, Record>; - pollDeviceAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ - status: z.ZodLiteral<"pending">; - expiresIn: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - status: "pending"; - expiresIn: number; - }, { - status: "pending"; - expiresIn: number; - }>, z.ZodObject<{ - status: z.ZodLiteral<"authorized">; - bootstrapToken: z.ZodString; - expiresIn: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - status: "authorized"; - bootstrapToken: string; - expiresIn?: number | undefined; - }, { - status: "authorized"; - bootstrapToken: string; - expiresIn?: number | undefined; - }>, z.ZodObject<{ - status: z.ZodLiteral<"expired">; - }, "strip", z.ZodTypeAny, { - status: "expired"; - }, { - status: "expired"; - }>, z.ZodObject<{ - status: z.ZodLiteral<"denied">; - }, "strip", z.ZodTypeAny, { - status: "denied"; - }, { - status: "denied"; - }>]>, Record, Record>; - bootstrap: _orpc_contract.ContractProcedureBuilderWithInputOutput; - projectName: z.ZodOptional; - forceNewWebhook: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - bootstrapToken: string; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - projectName?: string | undefined; - }, { - bootstrapToken: string; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - projectName?: string | undefined; - }>, z.ZodObject<{ - apiKey: z.ZodString; - apiKeyPreview: z.ZodString; - apiKeyId: z.ZodString; - webhookId: z.ZodString; - webhookSecret: z.ZodString; - organizationId: z.ZodString; - webhookUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - organizationId: string; - webhookUrl: string; - apiKey: string; - apiKeyPreview: string; - apiKeyId: string; - webhookId: string; - webhookSecret: string; - }, { - organizationId: string; - webhookUrl: string; - apiKey: string; - apiKeyPreview: string; - apiKeyId: string; - webhookId: string; - webhookSecret: string; - }>, Record, Record>; -}; - -export { type BootstrapOnboarding, type BootstrapOnboardingResponse, type PollDeviceAuth, type PollDeviceAuthResponse, type StartDeviceAuth, type StartDeviceAuthResponse, bootstrapContract, onboarding, pollDeviceAuthContract, startDeviceAuthContract }; diff --git a/dist/contracts/onboarding.js b/dist/contracts/onboarding.js deleted file mode 100644 index 02d1b04..0000000 --- a/dist/contracts/onboarding.js +++ /dev/null @@ -1,13 +0,0 @@ -import { - bootstrapContract, - onboarding, - pollDeviceAuthContract, - startDeviceAuthContract -} from "../chunk-RZPQSVO3.js"; -import "../chunk-WJ6HHWDE.js"; -export { - bootstrapContract, - onboarding, - pollDeviceAuthContract, - startDeviceAuthContract -}; diff --git a/dist/contracts/products.cjs b/dist/contracts/products.cjs deleted file mode 100644 index 56f7a8c..0000000 --- a/dist/contracts/products.cjs +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/contracts/products.ts -var products_exports = {}; -__export(products_exports, { - ListProductsOutputSchema: () => ListProductsOutputSchema, - ProductPriceSchema: () => ProductPriceSchema, - ProductSchema: () => ProductSchema, - listProductsContract: () => listProductsContract, - products: () => products -}); -module.exports = __toCommonJS(products_exports); -var import_contract = require("@orpc/contract"); -var import_zod2 = require("zod"); - -// src/schemas/currency.ts -var import_zod = require("zod"); -var CurrencySchema = import_zod.z.enum(["USD", "SAT"]); - -// src/contracts/products.ts -var ProductPriceSchema = import_zod2.z.object({ - id: import_zod2.z.string(), - amountType: import_zod2.z.enum(["FIXED", "CUSTOM"]), - priceAmount: import_zod2.z.number().nullable(), - currency: CurrencySchema -}); -var ProductSchema = import_zod2.z.object({ - id: import_zod2.z.string(), - name: import_zod2.z.string(), - description: import_zod2.z.string().nullable(), - recurringInterval: import_zod2.z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(), - prices: import_zod2.z.array(ProductPriceSchema) -}); -var ListProductsOutputSchema = import_zod2.z.object({ - products: import_zod2.z.array(ProductSchema) -}); -var listProductsContract = import_contract.oc.input(import_zod2.z.object({}).optional()).output(ListProductsOutputSchema); -var products = { - list: listProductsContract -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - ListProductsOutputSchema, - ProductPriceSchema, - ProductSchema, - listProductsContract, - products -}); diff --git a/dist/contracts/products.d.cts b/dist/contracts/products.d.cts deleted file mode 100644 index 0861880..0000000 --- a/dist/contracts/products.d.cts +++ /dev/null @@ -1,285 +0,0 @@ -import * as _orpc_contract from '@orpc/contract'; -import { z } from 'zod'; - -declare const ProductPriceSchema: z.ZodObject<{ - id: z.ZodString; - amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; -}, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; -}, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; -}>; -declare const ProductSchema: z.ZodObject<{ - id: z.ZodString; - name: z.ZodString; - description: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; -}, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; -}, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; -}>; -declare const ListProductsOutputSchema: z.ZodObject<{ - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">; -}, "strip", z.ZodTypeAny, { - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]; -}, { - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]; -}>; -type Product = z.infer; -type ProductPrice = z.infer; -declare const listProductsContract: _orpc_contract.ContractProcedureBuilderWithInputOutput>, z.ZodObject<{ - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">; -}, "strip", z.ZodTypeAny, { - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]; -}, { - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]; -}>, Record, Record>; -declare const products: { - list: _orpc_contract.ContractProcedureBuilderWithInputOutput>, z.ZodObject<{ - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">; - }, "strip", z.ZodTypeAny, { - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]; - }, { - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]; - }>, Record, Record>; -}; - -export { ListProductsOutputSchema, type Product, type ProductPrice, ProductPriceSchema, ProductSchema, listProductsContract, products }; diff --git a/dist/contracts/products.d.ts b/dist/contracts/products.d.ts deleted file mode 100644 index 0861880..0000000 --- a/dist/contracts/products.d.ts +++ /dev/null @@ -1,285 +0,0 @@ -import * as _orpc_contract from '@orpc/contract'; -import { z } from 'zod'; - -declare const ProductPriceSchema: z.ZodObject<{ - id: z.ZodString; - amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; -}, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; -}, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; -}>; -declare const ProductSchema: z.ZodObject<{ - id: z.ZodString; - name: z.ZodString; - description: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; -}, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; -}, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; -}>; -declare const ListProductsOutputSchema: z.ZodObject<{ - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">; -}, "strip", z.ZodTypeAny, { - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]; -}, { - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]; -}>; -type Product = z.infer; -type ProductPrice = z.infer; -declare const listProductsContract: _orpc_contract.ContractProcedureBuilderWithInputOutput>, z.ZodObject<{ - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">; -}, "strip", z.ZodTypeAny, { - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]; -}, { - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]; -}>, Record, Record>; -declare const products: { - list: _orpc_contract.ContractProcedureBuilderWithInputOutput>, z.ZodObject<{ - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">; - }, "strip", z.ZodTypeAny, { - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]; - }, { - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]; - }>, Record, Record>; -}; - -export { ListProductsOutputSchema, type Product, type ProductPrice, ProductPriceSchema, ProductSchema, listProductsContract, products }; diff --git a/dist/contracts/products.js b/dist/contracts/products.js deleted file mode 100644 index 1786421..0000000 --- a/dist/contracts/products.js +++ /dev/null @@ -1,15 +0,0 @@ -import { - ListProductsOutputSchema, - ProductPriceSchema, - ProductSchema, - listProductsContract, - products -} from "../chunk-YRMIQCBR.js"; -import "../chunk-6M6LFZ3U.js"; -export { - ListProductsOutputSchema, - ProductPriceSchema, - ProductSchema, - listProductsContract, - products -}; diff --git a/dist/index.cjs b/dist/index.cjs deleted file mode 100644 index 7e7b04c..0000000 --- a/dist/index.cjs +++ /dev/null @@ -1,552 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/index.ts -var index_exports = {}; -__export(index_exports, { - CheckoutSchema: () => CheckoutSchema, - CurrencySchema: () => CurrencySchema, - ListProductsOutputSchema: () => ListProductsOutputSchema, - MAX_KEY_COUNT: () => MAX_KEY_COUNT, - MAX_KEY_LENGTH: () => MAX_KEY_LENGTH, - MAX_METADATA_SIZE_BYTES: () => MAX_METADATA_SIZE_BYTES, - ProductPriceSchema: () => ProductPriceSchema, - ProductSchema: () => ProductSchema, - contract: () => contract, - validateMetadata: () => validateMetadata -}); -module.exports = __toCommonJS(index_exports); - -// src/contracts/checkout.ts -var import_contract = require("@orpc/contract"); -var import_zod5 = require("zod"); - -// src/schemas/checkout.ts -var import_zod4 = require("zod"); - -// src/schemas/currency.ts -var import_zod = require("zod"); -var CurrencySchema = import_zod.z.enum(["USD", "SAT"]); - -// src/schemas/invoice.ts -var import_zod2 = require("zod"); -var BaseInvoiceSchema = import_zod2.z.object({ - invoice: import_zod2.z.string(), - expiresAt: import_zod2.z.date(), - paymentHash: import_zod2.z.string(), - amountSats: import_zod2.z.number().nullable(), - amountSatsReceived: import_zod2.z.number().nullable(), - currency: CurrencySchema, - fiatAmount: import_zod2.z.number().nullable(), - btcPrice: import_zod2.z.number().nullable() -}); -var FixedAmountPendingInvoiceSchema = BaseInvoiceSchema.extend({ - amountSats: import_zod2.z.number(), - fiatAmount: import_zod2.z.number(), - btcPrice: import_zod2.z.number() -}); -var DynamicAmountPendingInvoiceSchema = BaseInvoiceSchema; -var PaidInvoiceSchema = FixedAmountPendingInvoiceSchema.extend({ - amountSatsReceived: import_zod2.z.number() -}); - -// src/schemas/product.ts -var import_zod3 = require("zod"); -var CheckoutProductPriceSchema = import_zod3.z.object({ - id: import_zod3.z.string(), - amountType: import_zod3.z.enum(["FIXED", "CUSTOM"]), - priceAmount: import_zod3.z.number().nullable(), - currency: CurrencySchema -}); -var CheckoutProductSchema = import_zod3.z.object({ - id: import_zod3.z.string(), - name: import_zod3.z.string(), - description: import_zod3.z.string().nullable(), - recurringInterval: import_zod3.z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(), - prices: import_zod3.z.array(CheckoutProductPriceSchema) -}); - -// src/schemas/checkout.ts -var CustomerFieldSchema = import_zod4.z.string().min(1); -var CustomerOutputSchema = import_zod4.z.object({ - name: import_zod4.z.string().nullish(), - email: import_zod4.z.string().email().nullish(), - externalId: import_zod4.z.string().nullish() -}).catchall(import_zod4.z.string()); -var BaseCheckoutSchema = import_zod4.z.object({ - id: import_zod4.z.string(), - createdAt: import_zod4.z.date(), - clientSecret: import_zod4.z.string(), - type: import_zod4.z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]), - status: import_zod4.z.enum([ - "UNCONFIRMED", - "CONFIRMED", - "PENDING_PAYMENT", - "PAYMENT_RECEIVED", - "EXPIRED" - ]), - organizationId: import_zod4.z.string(), - expiresAt: import_zod4.z.date(), - userMetadata: import_zod4.z.record(import_zod4.z.any()).nullable(), - customFieldData: import_zod4.z.record(import_zod4.z.any()).nullable(), - currency: CurrencySchema, - allowDiscountCodes: import_zod4.z.boolean(), - /** - * Array of customer fields required at checkout. - * @example ['email'] - email required - * @example ['email', 'name'] - both required - */ - requireCustomerData: import_zod4.z.array(CustomerFieldSchema).nullable(), - successUrl: import_zod4.z.string().nullable(), - /** - * Customer data associated with this checkout. - */ - customer: CustomerOutputSchema.nullable(), - customerBillingAddress: import_zod4.z.record(import_zod4.z.any()).nullable(), - products: import_zod4.z.array(CheckoutProductSchema).nullable(), - /** - * The selected product ID (from the products array). - * For PRODUCTS checkouts, this is the product the customer has chosen. - * null for AMOUNT/TOP_UP checkouts. - */ - productId: import_zod4.z.string().nullable(), - /** - * The selected product price ID. - * References a price from the selected product's prices array. - * null for AMOUNT/TOP_UP checkouts. - */ - productPriceId: import_zod4.z.string().nullable(), - /** - * User-provided amount for CUSTOM price products. - * Only set when the selected price has amountType: CUSTOM. - */ - customAmount: import_zod4.z.number().nullable(), - /** - * The selected product with full details (convenience field). - * Same shape as items in the products array. - * null if no product is selected. - */ - product: CheckoutProductSchema.nullable(), - providedAmount: import_zod4.z.number().nullable(), - totalAmount: import_zod4.z.number().nullable(), - discountAmount: import_zod4.z.number().nullable(), - netAmount: import_zod4.z.number().nullable(), - taxAmount: import_zod4.z.number().nullable(), - invoiceAmountSats: import_zod4.z.number().nullable(), - invoiceScid: import_zod4.z.string().nullable(), - btcPrice: import_zod4.z.number().nullable(), - invoice: BaseInvoiceSchema.nullable() -}); -var AmountFieldsSchema = import_zod4.z.object({ - totalAmount: import_zod4.z.number(), - discountAmount: import_zod4.z.number(), - netAmount: import_zod4.z.number(), - taxAmount: import_zod4.z.number(), - invoiceAmountSats: import_zod4.z.number(), - btcPrice: import_zod4.z.number() -}); -var ExpiredCheckoutSchema = BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("EXPIRED"), - type: import_zod4.z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]) -}); -var UnconfirmedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ - BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("UNCONFIRMED"), - type: import_zod4.z.literal("PRODUCTS"), - products: import_zod4.z.array(CheckoutProductSchema).nonempty() - }), - BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("UNCONFIRMED"), - type: import_zod4.z.literal("AMOUNT"), - providedAmount: import_zod4.z.number() - }), - BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("UNCONFIRMED"), - type: import_zod4.z.literal("TOP_UP") - }) -]); -var ConfirmedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("CONFIRMED"), - type: import_zod4.z.literal("PRODUCTS"), - products: import_zod4.z.array(CheckoutProductSchema).nonempty() - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("CONFIRMED"), - type: import_zod4.z.literal("AMOUNT"), - providedAmount: import_zod4.z.number() - }), - BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("CONFIRMED"), - type: import_zod4.z.literal("TOP_UP") - }) -]); -var PendingPaymentCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("PENDING_PAYMENT"), - type: import_zod4.z.literal("PRODUCTS"), - products: import_zod4.z.array(CheckoutProductSchema).nonempty(), - invoice: FixedAmountPendingInvoiceSchema - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("PENDING_PAYMENT"), - type: import_zod4.z.literal("AMOUNT"), - providedAmount: import_zod4.z.number(), - invoice: FixedAmountPendingInvoiceSchema - }), - BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("PENDING_PAYMENT"), - type: import_zod4.z.literal("TOP_UP"), - invoice: DynamicAmountPendingInvoiceSchema - }) -]); -var PaymentReceivedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("PAYMENT_RECEIVED"), - type: import_zod4.z.literal("PRODUCTS"), - products: import_zod4.z.array(CheckoutProductSchema).nonempty(), - invoice: PaidInvoiceSchema - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("PAYMENT_RECEIVED"), - type: import_zod4.z.literal("AMOUNT"), - providedAmount: import_zod4.z.number(), - invoice: PaidInvoiceSchema - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("PAYMENT_RECEIVED"), - type: import_zod4.z.literal("TOP_UP"), - invoice: PaidInvoiceSchema - }) -]); -var CheckoutSchema = import_zod4.z.union([ - UnconfirmedCheckoutSchema, - ConfirmedCheckoutSchema, - PendingPaymentCheckoutSchema, - PaymentReceivedCheckoutSchema, - ExpiredCheckoutSchema -]); - -// src/contracts/checkout.ts -var emptyStringToUndefined = import_zod5.z.string().transform((val) => val.trim() === "" ? void 0 : val); -var emailOrEmpty = import_zod5.z.string().email().optional().or(import_zod5.z.literal("")); -var CustomerFieldSchema2 = import_zod5.z.string().min(1); -var CustomerInputSchema = import_zod5.z.object({ - name: emptyStringToUndefined.optional(), - email: emailOrEmpty, - externalId: emptyStringToUndefined.optional() -}).catchall(import_zod5.z.string()); -var CreateCheckoutInputSchema = import_zod5.z.object({ - nodeId: import_zod5.z.string(), - amount: import_zod5.z.number().optional(), - currency: CurrencySchema.optional(), - products: import_zod5.z.array(import_zod5.z.string()).optional(), - successUrl: import_zod5.z.string().optional(), - allowDiscountCodes: import_zod5.z.boolean().optional(), - metadata: import_zod5.z.record(import_zod5.z.string(), import_zod5.z.any()).optional(), - /** - * Customer data for this checkout. - */ - customer: CustomerInputSchema.optional(), - /** - * Array of customer fields to require at checkout. - * If a field is listed here and not provided, the checkout UI will prompt for it. - * @example ['email'] - require email - * @example ['email', 'name'] - require both - */ - requireCustomerData: import_zod5.z.array(CustomerFieldSchema2).optional() -}); -var ConfirmCheckoutInputSchema = import_zod5.z.object({ - checkoutId: import_zod5.z.string(), - /** - * Customer data provided at confirm time. - */ - customer: CustomerInputSchema.optional(), - /** - * Product selection at confirm time. - * - undefined or [] = keep current selection - * - [{ productId }] = change selection to this product - * - priceAmount required if selected price has amountType: CUSTOM - * - * Currently limited to single selection (max 1 item). - */ - products: import_zod5.z.array( - import_zod5.z.object({ - productId: import_zod5.z.string(), - priceAmount: import_zod5.z.number().optional() - }) - ).max(1).optional() -}); -var ApplyDiscountCodeInputSchema = import_zod5.z.object({ - checkoutId: import_zod5.z.string(), - discountCode: import_zod5.z.string() -}); -var RegisterInvoiceInputSchema = import_zod5.z.object({ - nodeId: import_zod5.z.string(), - scid: import_zod5.z.string(), - checkoutId: import_zod5.z.string(), - invoice: import_zod5.z.string(), - paymentHash: import_zod5.z.string(), - invoiceExpiresAt: import_zod5.z.date() -}); -var PaymentReceivedInputSchema = import_zod5.z.object({ - payments: import_zod5.z.array( - import_zod5.z.object({ - paymentHash: import_zod5.z.string(), - amountSats: import_zod5.z.number(), - sandbox: import_zod5.z.boolean().default(false) - }) - ) -}); -var GetCheckoutInputSchema = import_zod5.z.object({ id: import_zod5.z.string() }); -var createCheckoutContract = import_contract.oc.input(CreateCheckoutInputSchema).output(CheckoutSchema); -var applyDiscountCodeContract = import_contract.oc.input(ApplyDiscountCodeInputSchema).output(CheckoutSchema); -var confirmCheckoutContract = import_contract.oc.input(ConfirmCheckoutInputSchema).output(CheckoutSchema); -var registerInvoiceContract = import_contract.oc.input(RegisterInvoiceInputSchema).output(CheckoutSchema); -var getCheckoutContract = import_contract.oc.input(GetCheckoutInputSchema).output(CheckoutSchema); -var paymentReceivedContract = import_contract.oc.input(PaymentReceivedInputSchema).output(import_zod5.z.object({ ok: import_zod5.z.boolean() })); -var checkout = { - get: getCheckoutContract, - create: createCheckoutContract, - confirm: confirmCheckoutContract, - registerInvoice: registerInvoiceContract, - paymentReceived: paymentReceivedContract -}; - -// src/contracts/onboarding.ts -var import_contract2 = require("@orpc/contract"); - -// src/schemas/onboarding.ts -var import_zod6 = require("zod"); -var StartDeviceAuthInputSchema = import_zod6.z.object({ - clientDisplayName: import_zod6.z.string().optional(), - webhookUrl: import_zod6.z.string().url().optional(), - forceNewWebhook: import_zod6.z.boolean().optional() -}); -var StartDeviceAuthOutputSchema = import_zod6.z.object({ - deviceCode: import_zod6.z.string(), - userCode: import_zod6.z.string(), - verificationUri: import_zod6.z.string().url(), - expiresIn: import_zod6.z.number().int().positive(), - interval: import_zod6.z.number().int().positive() -}); -var PollDeviceAuthInputSchema = import_zod6.z.object({ - deviceCode: import_zod6.z.string() -}); -var PollDeviceAuthOutputSchema = import_zod6.z.discriminatedUnion("status", [ - import_zod6.z.object({ - status: import_zod6.z.literal("pending"), - expiresIn: import_zod6.z.number().int().nonnegative() - }), - import_zod6.z.object({ - status: import_zod6.z.literal("authorized"), - bootstrapToken: import_zod6.z.string(), - expiresIn: import_zod6.z.number().int().nonnegative().optional() - }), - import_zod6.z.object({ - status: import_zod6.z.literal("expired") - }), - import_zod6.z.object({ - status: import_zod6.z.literal("denied") - }) -]); -var BootstrapInputSchema = import_zod6.z.object({ - bootstrapToken: import_zod6.z.string(), - webhookUrl: import_zod6.z.string().url().optional(), - projectName: import_zod6.z.string().optional(), - forceNewWebhook: import_zod6.z.boolean().optional() -}); -var BootstrapOutputSchema = import_zod6.z.object({ - apiKey: import_zod6.z.string(), - apiKeyPreview: import_zod6.z.string(), - apiKeyId: import_zod6.z.string(), - webhookId: import_zod6.z.string(), - webhookSecret: import_zod6.z.string(), - organizationId: import_zod6.z.string(), - webhookUrl: import_zod6.z.string().url() -}); - -// src/contracts/onboarding.ts -var startDeviceAuthContract = import_contract2.oc.input(StartDeviceAuthInputSchema).output(StartDeviceAuthOutputSchema); -var pollDeviceAuthContract = import_contract2.oc.input(PollDeviceAuthInputSchema).output(PollDeviceAuthOutputSchema); -var bootstrapContract = import_contract2.oc.input(BootstrapInputSchema).output(BootstrapOutputSchema); -var onboarding = { - startDeviceAuth: startDeviceAuthContract, - pollDeviceAuth: pollDeviceAuthContract, - bootstrap: bootstrapContract -}; - -// src/contracts/products.ts -var import_contract3 = require("@orpc/contract"); -var import_zod7 = require("zod"); -var ProductPriceSchema = import_zod7.z.object({ - id: import_zod7.z.string(), - amountType: import_zod7.z.enum(["FIXED", "CUSTOM"]), - priceAmount: import_zod7.z.number().nullable(), - currency: CurrencySchema -}); -var ProductSchema = import_zod7.z.object({ - id: import_zod7.z.string(), - name: import_zod7.z.string(), - description: import_zod7.z.string().nullable(), - recurringInterval: import_zod7.z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(), - prices: import_zod7.z.array(ProductPriceSchema) -}); -var ListProductsOutputSchema = import_zod7.z.object({ - products: import_zod7.z.array(ProductSchema) -}); -var listProductsContract = import_contract3.oc.input(import_zod7.z.object({}).optional()).output(ListProductsOutputSchema); -var products = { - list: listProductsContract -}; - -// src/lib/utils.ts -function ok(value) { - return { ok: true, value }; -} -function err(error) { - return { ok: false, error }; -} - -// src/validation/metadata-validation.ts -var MAX_METADATA_SIZE_BYTES = 1024; -var MAX_KEY_LENGTH = 100; -var MAX_KEY_COUNT = 50; -var CONTROL_CHAR_PATTERN = /[\x00-\x08\x0B-\x0C\x0E-\x1F]/; -var VALID_KEY_PATTERN = /^[a-zA-Z0-9_-]+$/; -function validateKeyFormat(key) { - if (!VALID_KEY_PATTERN.test(key)) { - const message = key === "" ? "Metadata keys cannot be empty" : `Metadata key "${key}" contains invalid characters. Keys must contain only letters, numbers, underscores, and hyphens.`; - return err({ type: "invalid_key_format", message }); - } - return ok(void 0); -} -function validateKeyLength(key) { - if (key.length > MAX_KEY_LENGTH) { - return err({ - type: "key_too_long", - message: `Metadata key "${key}" exceeds maximum length of ${MAX_KEY_LENGTH} characters` - }); - } - return ok(void 0); -} -function validateNullBytes(key, value) { - if (value.includes("\0")) { - return err({ - type: "control_character", - message: `Metadata value for key "${key}" cannot contain null bytes` - }); - } - return ok(void 0); -} -function validateControlCharacters(key, value) { - if (CONTROL_CHAR_PATTERN.test(value)) { - return err({ - type: "control_character", - message: `Metadata value for key "${key}" cannot contain control characters` - }); - } - return ok(void 0); -} -function validateUtf8Encoding(key, value) { - try { - const encoded = new TextEncoder().encode(value); - new TextDecoder("utf-8", { fatal: true }).decode(encoded); - } catch { - return err({ - type: "invalid_encoding", - message: `Metadata value for key "${key}" contains invalid UTF-8 encoding` - }); - } - return ok(void 0); -} -function validateMetadataSize(metadata) { - const serialized = JSON.stringify(metadata); - const sizeBytes = new TextEncoder().encode(serialized).length; - if (sizeBytes > MAX_METADATA_SIZE_BYTES) { - return err({ - type: "size_exceeded", - message: `Metadata size (${sizeBytes} bytes) exceeds maximum allowed size (${MAX_METADATA_SIZE_BYTES} bytes). To fix this, reduce the size of your metadata values or remove unnecessary fields.` - }); - } - return ok(void 0); -} -function validateKey(key) { - const formatCheck = validateKeyFormat(key); - if (!formatCheck.ok) return formatCheck; - const lengthCheck = validateKeyLength(key); - if (!lengthCheck.ok) return lengthCheck; - return ok(void 0); -} -function validateValue(key, value) { - const nullByteCheck = validateNullBytes(key, value); - if (!nullByteCheck.ok) return nullByteCheck; - const controlCharCheck = validateControlCharacters(key, value); - if (!controlCharCheck.ok) return controlCharCheck; - const encodingCheck = validateUtf8Encoding(key, value); - if (!encodingCheck.ok) return encodingCheck; - return ok(void 0); -} -function validateMetadata(metadata) { - if (!metadata) { - return ok(void 0); - } - const errors = []; - const keyCount = Object.keys(metadata).length; - if (keyCount > MAX_KEY_COUNT) { - errors.push({ - type: "key_count_exceeded", - message: `Metadata contains ${keyCount} keys, which exceeds the maximum of ${MAX_KEY_COUNT} keys` - }); - } - for (const [key, value] of Object.entries(metadata)) { - const keyCheck = validateKey(key); - if (!keyCheck.ok) { - errors.push(keyCheck.error); - } - const valueCheck = validateValue(key, value); - if (!valueCheck.ok) { - errors.push(valueCheck.error); - } - } - const sizeCheck = validateMetadataSize(metadata); - if (!sizeCheck.ok) { - errors.push(sizeCheck.error); - } - if (errors.length > 0) { - return err(errors); - } - return ok(void 0); -} - -// src/index.ts -var contract = { checkout, onboarding, products }; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - CheckoutSchema, - CurrencySchema, - ListProductsOutputSchema, - MAX_KEY_COUNT, - MAX_KEY_LENGTH, - MAX_METADATA_SIZE_BYTES, - ProductPriceSchema, - ProductSchema, - contract, - validateMetadata -}); diff --git a/dist/index.d.cts b/dist/index.d.cts deleted file mode 100644 index aac36fa..0000000 --- a/dist/index.d.cts +++ /dev/null @@ -1,15609 +0,0 @@ -import * as _orpc_contract from '@orpc/contract'; -import * as zod from 'zod'; -export { ConfirmCheckout, CreateCheckout, PaymentReceived, RegisterInvoice } from './contracts/checkout.cjs'; -export { BootstrapOnboarding, BootstrapOnboardingResponse, PollDeviceAuth, PollDeviceAuthResponse, StartDeviceAuth, StartDeviceAuth as StartDeviceAuthInput, StartDeviceAuthResponse } from './contracts/onboarding.cjs'; -export { Checkout, CheckoutSchema } from './schemas/checkout.cjs'; -export { Currency, CurrencySchema } from './schemas/currency.cjs'; -export { ListProductsOutputSchema, Product, ProductPrice, ProductPriceSchema, ProductSchema } from './contracts/products.cjs'; -export { MAX_KEY_COUNT, MAX_KEY_LENGTH, MAX_METADATA_SIZE_BYTES, MetadataValidationError, validateMetadata } from './validation/metadata-validation.cjs'; -import './schemas/onboarding.cjs'; -import './lib/utils.cjs'; - -declare const contract: { - checkout: { - get: _orpc_contract.ContractProcedureBuilderWithInputOutput, zod.ZodUnion<[zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"TOP_UP">; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"TOP_UP">; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"TOP_UP">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSats: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"TOP_UP">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>]>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"EXPIRED">; - type: zod.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; - }, "strip", zod.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, Record, Record>; - create: _orpc_contract.ContractProcedureBuilderWithInputOutput; - currency: zod.ZodOptional>; - products: zod.ZodOptional>; - successUrl: zod.ZodOptional; - allowDiscountCodes: zod.ZodOptional; - metadata: zod.ZodOptional>; - customer: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - requireCustomerData: zod.ZodOptional>; - }, "strip", zod.ZodTypeAny, { - nodeId: string; - amount?: number | undefined; - currency?: "USD" | "SAT" | undefined; - products?: string[] | undefined; - successUrl?: string | undefined; - allowDiscountCodes?: boolean | undefined; - metadata?: Record | undefined; - customer?: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | undefined; - requireCustomerData?: string[] | undefined; - }, { - nodeId: string; - amount?: number | undefined; - currency?: "USD" | "SAT" | undefined; - products?: string[] | undefined; - successUrl?: string | undefined; - allowDiscountCodes?: boolean | undefined; - metadata?: Record | undefined; - customer?: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | undefined; - requireCustomerData?: string[] | undefined; - }>, zod.ZodUnion<[zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"TOP_UP">; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"TOP_UP">; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"TOP_UP">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSats: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"TOP_UP">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>]>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"EXPIRED">; - type: zod.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; - }, "strip", zod.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, Record, Record>; - confirm: _orpc_contract.ContractProcedureBuilderWithInputOutput>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - products: zod.ZodOptional; - }, "strip", zod.ZodTypeAny, { - productId: string; - priceAmount?: number | undefined; - }, { - productId: string; - priceAmount?: number | undefined; - }>, "many">>; - }, "strip", zod.ZodTypeAny, { - checkoutId: string; - products?: { - productId: string; - priceAmount?: number | undefined; - }[] | undefined; - customer?: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | undefined; - }, { - checkoutId: string; - products?: { - productId: string; - priceAmount?: number | undefined; - }[] | undefined; - customer?: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | undefined; - }>, zod.ZodUnion<[zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"TOP_UP">; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"TOP_UP">; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"TOP_UP">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSats: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"TOP_UP">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>]>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"EXPIRED">; - type: zod.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; - }, "strip", zod.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, Record, Record>; - registerInvoice: _orpc_contract.ContractProcedureBuilderWithInputOutput, zod.ZodUnion<[zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"TOP_UP">; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"TOP_UP">; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"TOP_UP">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSats: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"TOP_UP">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>]>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"EXPIRED">; - type: zod.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; - }, "strip", zod.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, Record, Record>; - paymentReceived: _orpc_contract.ContractProcedureBuilderWithInputOutput; - }, "strip", zod.ZodTypeAny, { - paymentHash: string; - amountSats: number; - sandbox: boolean; - }, { - paymentHash: string; - amountSats: number; - sandbox?: boolean | undefined; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - payments: { - paymentHash: string; - amountSats: number; - sandbox: boolean; - }[]; - }, { - payments: { - paymentHash: string; - amountSats: number; - sandbox?: boolean | undefined; - }[]; - }>, zod.ZodObject<{ - ok: zod.ZodBoolean; - }, "strip", zod.ZodTypeAny, { - ok: boolean; - }, { - ok: boolean; - }>, Record, Record>; - }; - onboarding: { - startDeviceAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput; - webhookUrl: zod.ZodOptional; - forceNewWebhook: zod.ZodOptional; - }, "strip", zod.ZodTypeAny, { - clientDisplayName?: string | undefined; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - }, { - clientDisplayName?: string | undefined; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - }>, zod.ZodObject<{ - deviceCode: zod.ZodString; - userCode: zod.ZodString; - verificationUri: zod.ZodString; - expiresIn: zod.ZodNumber; - interval: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - deviceCode: string; - userCode: string; - verificationUri: string; - expiresIn: number; - interval: number; - }, { - deviceCode: string; - userCode: string; - verificationUri: string; - expiresIn: number; - interval: number; - }>, Record, Record>; - pollDeviceAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput, zod.ZodDiscriminatedUnion<"status", [zod.ZodObject<{ - status: zod.ZodLiteral<"pending">; - expiresIn: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "pending"; - expiresIn: number; - }, { - status: "pending"; - expiresIn: number; - }>, zod.ZodObject<{ - status: zod.ZodLiteral<"authorized">; - bootstrapToken: zod.ZodString; - expiresIn: zod.ZodOptional; - }, "strip", zod.ZodTypeAny, { - status: "authorized"; - bootstrapToken: string; - expiresIn?: number | undefined; - }, { - status: "authorized"; - bootstrapToken: string; - expiresIn?: number | undefined; - }>, zod.ZodObject<{ - status: zod.ZodLiteral<"expired">; - }, "strip", zod.ZodTypeAny, { - status: "expired"; - }, { - status: "expired"; - }>, zod.ZodObject<{ - status: zod.ZodLiteral<"denied">; - }, "strip", zod.ZodTypeAny, { - status: "denied"; - }, { - status: "denied"; - }>]>, Record, Record>; - bootstrap: _orpc_contract.ContractProcedureBuilderWithInputOutput; - projectName: zod.ZodOptional; - forceNewWebhook: zod.ZodOptional; - }, "strip", zod.ZodTypeAny, { - bootstrapToken: string; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - projectName?: string | undefined; - }, { - bootstrapToken: string; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - projectName?: string | undefined; - }>, zod.ZodObject<{ - apiKey: zod.ZodString; - apiKeyPreview: zod.ZodString; - apiKeyId: zod.ZodString; - webhookId: zod.ZodString; - webhookSecret: zod.ZodString; - organizationId: zod.ZodString; - webhookUrl: zod.ZodString; - }, "strip", zod.ZodTypeAny, { - organizationId: string; - webhookUrl: string; - apiKey: string; - apiKeyPreview: string; - apiKeyId: string; - webhookId: string; - webhookSecret: string; - }, { - organizationId: string; - webhookUrl: string; - apiKey: string; - apiKeyPreview: string; - apiKeyId: string; - webhookId: string; - webhookSecret: string; - }>, Record, Record>; - }; - products: { - list: _orpc_contract.ContractProcedureBuilderWithInputOutput>, zod.ZodObject<{ - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]; - }, { - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]; - }>, Record, Record>; - }; -}; - -export { contract }; diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 8faa17c..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,15609 +0,0 @@ -import * as _orpc_contract from '@orpc/contract'; -import * as zod from 'zod'; -export { ConfirmCheckout, CreateCheckout, PaymentReceived, RegisterInvoice } from './contracts/checkout.js'; -export { BootstrapOnboarding, BootstrapOnboardingResponse, PollDeviceAuth, PollDeviceAuthResponse, StartDeviceAuth, StartDeviceAuth as StartDeviceAuthInput, StartDeviceAuthResponse } from './contracts/onboarding.js'; -export { Checkout, CheckoutSchema } from './schemas/checkout.js'; -export { Currency, CurrencySchema } from './schemas/currency.js'; -export { ListProductsOutputSchema, Product, ProductPrice, ProductPriceSchema, ProductSchema } from './contracts/products.js'; -export { MAX_KEY_COUNT, MAX_KEY_LENGTH, MAX_METADATA_SIZE_BYTES, MetadataValidationError, validateMetadata } from './validation/metadata-validation.js'; -import './schemas/onboarding.js'; -import './lib/utils.js'; - -declare const contract: { - checkout: { - get: _orpc_contract.ContractProcedureBuilderWithInputOutput, zod.ZodUnion<[zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"TOP_UP">; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"TOP_UP">; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"TOP_UP">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSats: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"TOP_UP">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>]>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"EXPIRED">; - type: zod.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; - }, "strip", zod.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, Record, Record>; - create: _orpc_contract.ContractProcedureBuilderWithInputOutput; - currency: zod.ZodOptional>; - products: zod.ZodOptional>; - successUrl: zod.ZodOptional; - allowDiscountCodes: zod.ZodOptional; - metadata: zod.ZodOptional>; - customer: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - requireCustomerData: zod.ZodOptional>; - }, "strip", zod.ZodTypeAny, { - nodeId: string; - amount?: number | undefined; - currency?: "USD" | "SAT" | undefined; - products?: string[] | undefined; - successUrl?: string | undefined; - allowDiscountCodes?: boolean | undefined; - metadata?: Record | undefined; - customer?: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | undefined; - requireCustomerData?: string[] | undefined; - }, { - nodeId: string; - amount?: number | undefined; - currency?: "USD" | "SAT" | undefined; - products?: string[] | undefined; - successUrl?: string | undefined; - allowDiscountCodes?: boolean | undefined; - metadata?: Record | undefined; - customer?: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | undefined; - requireCustomerData?: string[] | undefined; - }>, zod.ZodUnion<[zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"TOP_UP">; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"TOP_UP">; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"TOP_UP">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSats: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"TOP_UP">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>]>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"EXPIRED">; - type: zod.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; - }, "strip", zod.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, Record, Record>; - confirm: _orpc_contract.ContractProcedureBuilderWithInputOutput>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - products: zod.ZodOptional; - }, "strip", zod.ZodTypeAny, { - productId: string; - priceAmount?: number | undefined; - }, { - productId: string; - priceAmount?: number | undefined; - }>, "many">>; - }, "strip", zod.ZodTypeAny, { - checkoutId: string; - products?: { - productId: string; - priceAmount?: number | undefined; - }[] | undefined; - customer?: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | undefined; - }, { - checkoutId: string; - products?: { - productId: string; - priceAmount?: number | undefined; - }[] | undefined; - customer?: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodUnion<[zod.ZodOptional, zod.ZodLiteral<"">]>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | undefined; - }>, zod.ZodUnion<[zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"TOP_UP">; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"TOP_UP">; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"TOP_UP">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSats: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"TOP_UP">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>]>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"EXPIRED">; - type: zod.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; - }, "strip", zod.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, Record, Record>; - registerInvoice: _orpc_contract.ContractProcedureBuilderWithInputOutput, zod.ZodUnion<[zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"UNCONFIRMED">; - type: zod.ZodLiteral<"TOP_UP">; - }, "strip", zod.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"CONFIRMED">; - type: zod.ZodLiteral<"TOP_UP">; - }, "strip", zod.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - } & { - status: zod.ZodLiteral<"PENDING_PAYMENT">; - type: zod.ZodLiteral<"TOP_UP">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - amountSats: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"PRODUCTS">; - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"AMOUNT">; - providedAmount: zod.ZodNumber; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - totalAmount: zod.ZodNumber; - discountAmount: zod.ZodNumber; - netAmount: zod.ZodNumber; - taxAmount: zod.ZodNumber; - invoiceAmountSats: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - status: zod.ZodLiteral<"PAYMENT_RECEIVED">; - type: zod.ZodLiteral<"TOP_UP">; - invoice: zod.ZodObject<{ - invoice: zod.ZodString; - expiresAt: zod.ZodDate; - paymentHash: zod.ZodString; - currency: zod.ZodEnum<["USD", "SAT"]>; - amountSats: zod.ZodNumber; - fiatAmount: zod.ZodNumber; - btcPrice: zod.ZodNumber; - } & { - amountSatsReceived: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; - }, "strip", zod.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; - }>]>, zod.ZodObject<{ - id: zod.ZodString; - createdAt: zod.ZodDate; - clientSecret: zod.ZodString; - organizationId: zod.ZodString; - expiresAt: zod.ZodDate; - userMetadata: zod.ZodNullable>; - customFieldData: zod.ZodNullable>; - currency: zod.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: zod.ZodBoolean; - requireCustomerData: zod.ZodNullable>; - successUrl: zod.ZodNullable; - customer: zod.ZodNullable>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, "strip", zod.ZodString, zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">, zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip">>>; - customerBillingAddress: zod.ZodNullable>; - products: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: zod.ZodNullable; - productPriceId: zod.ZodNullable; - customAmount: zod.ZodNullable; - product: zod.ZodNullable; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: zod.ZodNullable; - totalAmount: zod.ZodNullable; - discountAmount: zod.ZodNullable; - netAmount: zod.ZodNullable; - taxAmount: zod.ZodNullable; - invoiceAmountSats: zod.ZodNullable; - invoiceScid: zod.ZodNullable; - btcPrice: zod.ZodNullable; - invoice: zod.ZodNullable; - amountSatsReceived: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - fiatAmount: zod.ZodNullable; - btcPrice: zod.ZodNullable; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - } & { - status: zod.ZodLiteral<"EXPIRED">; - type: zod.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; - }, "strip", zod.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectOutputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: zod.objectInputType<{ - name: zod.ZodOptional>; - email: zod.ZodOptional>; - externalId: zod.ZodOptional>; - }, zod.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; - }>]>, Record, Record>; - paymentReceived: _orpc_contract.ContractProcedureBuilderWithInputOutput; - }, "strip", zod.ZodTypeAny, { - paymentHash: string; - amountSats: number; - sandbox: boolean; - }, { - paymentHash: string; - amountSats: number; - sandbox?: boolean | undefined; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - payments: { - paymentHash: string; - amountSats: number; - sandbox: boolean; - }[]; - }, { - payments: { - paymentHash: string; - amountSats: number; - sandbox?: boolean | undefined; - }[]; - }>, zod.ZodObject<{ - ok: zod.ZodBoolean; - }, "strip", zod.ZodTypeAny, { - ok: boolean; - }, { - ok: boolean; - }>, Record, Record>; - }; - onboarding: { - startDeviceAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput; - webhookUrl: zod.ZodOptional; - forceNewWebhook: zod.ZodOptional; - }, "strip", zod.ZodTypeAny, { - clientDisplayName?: string | undefined; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - }, { - clientDisplayName?: string | undefined; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - }>, zod.ZodObject<{ - deviceCode: zod.ZodString; - userCode: zod.ZodString; - verificationUri: zod.ZodString; - expiresIn: zod.ZodNumber; - interval: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - deviceCode: string; - userCode: string; - verificationUri: string; - expiresIn: number; - interval: number; - }, { - deviceCode: string; - userCode: string; - verificationUri: string; - expiresIn: number; - interval: number; - }>, Record, Record>; - pollDeviceAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput, zod.ZodDiscriminatedUnion<"status", [zod.ZodObject<{ - status: zod.ZodLiteral<"pending">; - expiresIn: zod.ZodNumber; - }, "strip", zod.ZodTypeAny, { - status: "pending"; - expiresIn: number; - }, { - status: "pending"; - expiresIn: number; - }>, zod.ZodObject<{ - status: zod.ZodLiteral<"authorized">; - bootstrapToken: zod.ZodString; - expiresIn: zod.ZodOptional; - }, "strip", zod.ZodTypeAny, { - status: "authorized"; - bootstrapToken: string; - expiresIn?: number | undefined; - }, { - status: "authorized"; - bootstrapToken: string; - expiresIn?: number | undefined; - }>, zod.ZodObject<{ - status: zod.ZodLiteral<"expired">; - }, "strip", zod.ZodTypeAny, { - status: "expired"; - }, { - status: "expired"; - }>, zod.ZodObject<{ - status: zod.ZodLiteral<"denied">; - }, "strip", zod.ZodTypeAny, { - status: "denied"; - }, { - status: "denied"; - }>]>, Record, Record>; - bootstrap: _orpc_contract.ContractProcedureBuilderWithInputOutput; - projectName: zod.ZodOptional; - forceNewWebhook: zod.ZodOptional; - }, "strip", zod.ZodTypeAny, { - bootstrapToken: string; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - projectName?: string | undefined; - }, { - bootstrapToken: string; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - projectName?: string | undefined; - }>, zod.ZodObject<{ - apiKey: zod.ZodString; - apiKeyPreview: zod.ZodString; - apiKeyId: zod.ZodString; - webhookId: zod.ZodString; - webhookSecret: zod.ZodString; - organizationId: zod.ZodString; - webhookUrl: zod.ZodString; - }, "strip", zod.ZodTypeAny, { - organizationId: string; - webhookUrl: string; - apiKey: string; - apiKeyPreview: string; - apiKeyId: string; - webhookId: string; - webhookSecret: string; - }, { - organizationId: string; - webhookUrl: string; - apiKey: string; - apiKeyPreview: string; - apiKeyId: string; - webhookId: string; - webhookSecret: string; - }>, Record, Record>; - }; - products: { - list: _orpc_contract.ContractProcedureBuilderWithInputOutput>, zod.ZodObject<{ - products: zod.ZodArray; - recurringInterval: zod.ZodNullable>; - prices: zod.ZodArray; - priceAmount: zod.ZodNullable; - currency: zod.ZodEnum<["USD", "SAT"]>; - }, "strip", zod.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">; - }, "strip", zod.ZodTypeAny, { - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]; - }, { - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]; - }>, Record, Record>; - }; -}; - -export { contract }; diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 0c1fb68..0000000 --- a/dist/index.js +++ /dev/null @@ -1,43 +0,0 @@ -import { - MAX_KEY_COUNT, - MAX_KEY_LENGTH, - MAX_METADATA_SIZE_BYTES, - validateMetadata -} from "./chunk-DVDEDUJU.js"; -import { - checkout -} from "./chunk-4AJPTMW2.js"; -import { - onboarding -} from "./chunk-RZPQSVO3.js"; -import "./chunk-WJ6HHWDE.js"; -import { - ListProductsOutputSchema, - ProductPriceSchema, - ProductSchema, - products -} from "./chunk-YRMIQCBR.js"; -import "./chunk-OJKHC5SH.js"; -import { - CheckoutSchema -} from "./chunk-CD2LZX3A.js"; -import "./chunk-T6X3KMH6.js"; -import "./chunk-TGG53ETU.js"; -import { - CurrencySchema -} from "./chunk-6M6LFZ3U.js"; - -// src/index.ts -var contract = { checkout, onboarding, products }; -export { - CheckoutSchema, - CurrencySchema, - ListProductsOutputSchema, - MAX_KEY_COUNT, - MAX_KEY_LENGTH, - MAX_METADATA_SIZE_BYTES, - ProductPriceSchema, - ProductSchema, - contract, - validateMetadata -}; diff --git a/dist/lib/utils.cjs b/dist/lib/utils.cjs deleted file mode 100644 index 94ee4cf..0000000 --- a/dist/lib/utils.cjs +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/lib/utils.ts -var utils_exports = {}; -__export(utils_exports, { - err: () => err, - ok: () => ok -}); -module.exports = __toCommonJS(utils_exports); -function ok(value) { - return { ok: true, value }; -} -function err(error) { - return { ok: false, error }; -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - err, - ok -}); diff --git a/dist/lib/utils.d.cts b/dist/lib/utils.d.cts deleted file mode 100644 index 281e825..0000000 --- a/dist/lib/utils.d.cts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Generic Result type for operations that can succeed or fail. - * - * This is a discriminated union that provides type-safe error handling - * without throwing exceptions. The `ok` property acts as the discriminator. - * - * @example - * ```typescript - * function divide(a: number, b: number): Result { - * if (b === 0) { - * return { ok: false, error: 'Division by zero' } - * } - * return { ok: true, value: a / b } - * } - * - * const result = divide(10, 2) - * if (result.ok) { - * console.log(result.value) // TypeScript knows result.value exists - * } else { - * console.error(result.error) // TypeScript knows result.error exists - * } - * ``` - */ -type Result = { - ok: true; - value: T; -} | { - ok: false; - error: E; -}; -/** - * Creates a successful Result - */ -declare function ok(value: T): Result; -/** - * Creates a failed Result - */ -declare function err(error: E): Result; - -export { type Result, err, ok }; diff --git a/dist/lib/utils.d.ts b/dist/lib/utils.d.ts deleted file mode 100644 index 281e825..0000000 --- a/dist/lib/utils.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Generic Result type for operations that can succeed or fail. - * - * This is a discriminated union that provides type-safe error handling - * without throwing exceptions. The `ok` property acts as the discriminator. - * - * @example - * ```typescript - * function divide(a: number, b: number): Result { - * if (b === 0) { - * return { ok: false, error: 'Division by zero' } - * } - * return { ok: true, value: a / b } - * } - * - * const result = divide(10, 2) - * if (result.ok) { - * console.log(result.value) // TypeScript knows result.value exists - * } else { - * console.error(result.error) // TypeScript knows result.error exists - * } - * ``` - */ -type Result = { - ok: true; - value: T; -} | { - ok: false; - error: E; -}; -/** - * Creates a successful Result - */ -declare function ok(value: T): Result; -/** - * Creates a failed Result - */ -declare function err(error: E): Result; - -export { type Result, err, ok }; diff --git a/dist/lib/utils.js b/dist/lib/utils.js deleted file mode 100644 index d320049..0000000 --- a/dist/lib/utils.js +++ /dev/null @@ -1,8 +0,0 @@ -import { - err, - ok -} from "../chunk-OJKHC5SH.js"; -export { - err, - ok -}; diff --git a/dist/schemas/checkout.cjs b/dist/schemas/checkout.cjs deleted file mode 100644 index 680ba6b..0000000 --- a/dist/schemas/checkout.cjs +++ /dev/null @@ -1,243 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/schemas/checkout.ts -var checkout_exports = {}; -__export(checkout_exports, { - CheckoutSchema: () => CheckoutSchema, - ConfirmedCheckoutSchema: () => ConfirmedCheckoutSchema, - ExpiredCheckoutSchema: () => ExpiredCheckoutSchema, - PaymentReceivedCheckoutSchema: () => PaymentReceivedCheckoutSchema, - PendingPaymentCheckoutSchema: () => PendingPaymentCheckoutSchema, - UnconfirmedCheckoutSchema: () => UnconfirmedCheckoutSchema -}); -module.exports = __toCommonJS(checkout_exports); -var import_zod4 = require("zod"); - -// src/schemas/currency.ts -var import_zod = require("zod"); -var CurrencySchema = import_zod.z.enum(["USD", "SAT"]); - -// src/schemas/invoice.ts -var import_zod2 = require("zod"); -var BaseInvoiceSchema = import_zod2.z.object({ - invoice: import_zod2.z.string(), - expiresAt: import_zod2.z.date(), - paymentHash: import_zod2.z.string(), - amountSats: import_zod2.z.number().nullable(), - amountSatsReceived: import_zod2.z.number().nullable(), - currency: CurrencySchema, - fiatAmount: import_zod2.z.number().nullable(), - btcPrice: import_zod2.z.number().nullable() -}); -var FixedAmountPendingInvoiceSchema = BaseInvoiceSchema.extend({ - amountSats: import_zod2.z.number(), - fiatAmount: import_zod2.z.number(), - btcPrice: import_zod2.z.number() -}); -var DynamicAmountPendingInvoiceSchema = BaseInvoiceSchema; -var PaidInvoiceSchema = FixedAmountPendingInvoiceSchema.extend({ - amountSatsReceived: import_zod2.z.number() -}); - -// src/schemas/product.ts -var import_zod3 = require("zod"); -var CheckoutProductPriceSchema = import_zod3.z.object({ - id: import_zod3.z.string(), - amountType: import_zod3.z.enum(["FIXED", "CUSTOM"]), - priceAmount: import_zod3.z.number().nullable(), - currency: CurrencySchema -}); -var CheckoutProductSchema = import_zod3.z.object({ - id: import_zod3.z.string(), - name: import_zod3.z.string(), - description: import_zod3.z.string().nullable(), - recurringInterval: import_zod3.z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(), - prices: import_zod3.z.array(CheckoutProductPriceSchema) -}); - -// src/schemas/checkout.ts -var CustomerFieldSchema = import_zod4.z.string().min(1); -var CustomerOutputSchema = import_zod4.z.object({ - name: import_zod4.z.string().nullish(), - email: import_zod4.z.string().email().nullish(), - externalId: import_zod4.z.string().nullish() -}).catchall(import_zod4.z.string()); -var BaseCheckoutSchema = import_zod4.z.object({ - id: import_zod4.z.string(), - createdAt: import_zod4.z.date(), - clientSecret: import_zod4.z.string(), - type: import_zod4.z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]), - status: import_zod4.z.enum([ - "UNCONFIRMED", - "CONFIRMED", - "PENDING_PAYMENT", - "PAYMENT_RECEIVED", - "EXPIRED" - ]), - organizationId: import_zod4.z.string(), - expiresAt: import_zod4.z.date(), - userMetadata: import_zod4.z.record(import_zod4.z.any()).nullable(), - customFieldData: import_zod4.z.record(import_zod4.z.any()).nullable(), - currency: CurrencySchema, - allowDiscountCodes: import_zod4.z.boolean(), - /** - * Array of customer fields required at checkout. - * @example ['email'] - email required - * @example ['email', 'name'] - both required - */ - requireCustomerData: import_zod4.z.array(CustomerFieldSchema).nullable(), - successUrl: import_zod4.z.string().nullable(), - /** - * Customer data associated with this checkout. - */ - customer: CustomerOutputSchema.nullable(), - customerBillingAddress: import_zod4.z.record(import_zod4.z.any()).nullable(), - products: import_zod4.z.array(CheckoutProductSchema).nullable(), - /** - * The selected product ID (from the products array). - * For PRODUCTS checkouts, this is the product the customer has chosen. - * null for AMOUNT/TOP_UP checkouts. - */ - productId: import_zod4.z.string().nullable(), - /** - * The selected product price ID. - * References a price from the selected product's prices array. - * null for AMOUNT/TOP_UP checkouts. - */ - productPriceId: import_zod4.z.string().nullable(), - /** - * User-provided amount for CUSTOM price products. - * Only set when the selected price has amountType: CUSTOM. - */ - customAmount: import_zod4.z.number().nullable(), - /** - * The selected product with full details (convenience field). - * Same shape as items in the products array. - * null if no product is selected. - */ - product: CheckoutProductSchema.nullable(), - providedAmount: import_zod4.z.number().nullable(), - totalAmount: import_zod4.z.number().nullable(), - discountAmount: import_zod4.z.number().nullable(), - netAmount: import_zod4.z.number().nullable(), - taxAmount: import_zod4.z.number().nullable(), - invoiceAmountSats: import_zod4.z.number().nullable(), - invoiceScid: import_zod4.z.string().nullable(), - btcPrice: import_zod4.z.number().nullable(), - invoice: BaseInvoiceSchema.nullable() -}); -var AmountFieldsSchema = import_zod4.z.object({ - totalAmount: import_zod4.z.number(), - discountAmount: import_zod4.z.number(), - netAmount: import_zod4.z.number(), - taxAmount: import_zod4.z.number(), - invoiceAmountSats: import_zod4.z.number(), - btcPrice: import_zod4.z.number() -}); -var ExpiredCheckoutSchema = BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("EXPIRED"), - type: import_zod4.z.enum(["PRODUCTS", "AMOUNT", "TOP_UP"]) -}); -var UnconfirmedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ - BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("UNCONFIRMED"), - type: import_zod4.z.literal("PRODUCTS"), - products: import_zod4.z.array(CheckoutProductSchema).nonempty() - }), - BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("UNCONFIRMED"), - type: import_zod4.z.literal("AMOUNT"), - providedAmount: import_zod4.z.number() - }), - BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("UNCONFIRMED"), - type: import_zod4.z.literal("TOP_UP") - }) -]); -var ConfirmedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("CONFIRMED"), - type: import_zod4.z.literal("PRODUCTS"), - products: import_zod4.z.array(CheckoutProductSchema).nonempty() - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("CONFIRMED"), - type: import_zod4.z.literal("AMOUNT"), - providedAmount: import_zod4.z.number() - }), - BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("CONFIRMED"), - type: import_zod4.z.literal("TOP_UP") - }) -]); -var PendingPaymentCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("PENDING_PAYMENT"), - type: import_zod4.z.literal("PRODUCTS"), - products: import_zod4.z.array(CheckoutProductSchema).nonempty(), - invoice: FixedAmountPendingInvoiceSchema - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("PENDING_PAYMENT"), - type: import_zod4.z.literal("AMOUNT"), - providedAmount: import_zod4.z.number(), - invoice: FixedAmountPendingInvoiceSchema - }), - BaseCheckoutSchema.extend({ - status: import_zod4.z.literal("PENDING_PAYMENT"), - type: import_zod4.z.literal("TOP_UP"), - invoice: DynamicAmountPendingInvoiceSchema - }) -]); -var PaymentReceivedCheckoutSchema = import_zod4.z.discriminatedUnion("type", [ - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("PAYMENT_RECEIVED"), - type: import_zod4.z.literal("PRODUCTS"), - products: import_zod4.z.array(CheckoutProductSchema).nonempty(), - invoice: PaidInvoiceSchema - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("PAYMENT_RECEIVED"), - type: import_zod4.z.literal("AMOUNT"), - providedAmount: import_zod4.z.number(), - invoice: PaidInvoiceSchema - }), - BaseCheckoutSchema.merge(AmountFieldsSchema).extend({ - status: import_zod4.z.literal("PAYMENT_RECEIVED"), - type: import_zod4.z.literal("TOP_UP"), - invoice: PaidInvoiceSchema - }) -]); -var CheckoutSchema = import_zod4.z.union([ - UnconfirmedCheckoutSchema, - ConfirmedCheckoutSchema, - PendingPaymentCheckoutSchema, - PaymentReceivedCheckoutSchema, - ExpiredCheckoutSchema -]); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - CheckoutSchema, - ConfirmedCheckoutSchema, - ExpiredCheckoutSchema, - PaymentReceivedCheckoutSchema, - PendingPaymentCheckoutSchema, - UnconfirmedCheckoutSchema -}); diff --git a/dist/schemas/checkout.d.cts b/dist/schemas/checkout.d.cts deleted file mode 100644 index 95f5155..0000000 --- a/dist/schemas/checkout.d.cts +++ /dev/null @@ -1,7633 +0,0 @@ -import { z } from 'zod'; - -declare const ExpiredCheckoutSchema: z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; -}, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>; -declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>; -declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>; -declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>; -declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>]>; -declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; -}, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>; -type Checkout = z.infer; - -export { type Checkout, CheckoutSchema, ConfirmedCheckoutSchema, ExpiredCheckoutSchema, PaymentReceivedCheckoutSchema, PendingPaymentCheckoutSchema, UnconfirmedCheckoutSchema }; diff --git a/dist/schemas/checkout.d.ts b/dist/schemas/checkout.d.ts deleted file mode 100644 index 95f5155..0000000 --- a/dist/schemas/checkout.d.ts +++ /dev/null @@ -1,7633 +0,0 @@ -import { z } from 'zod'; - -declare const ExpiredCheckoutSchema: z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; -}, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>; -declare const UnconfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>; -declare const ConfirmedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>; -declare const PendingPaymentCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>; -declare const PaymentReceivedCheckoutSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>]>; -declare const CheckoutSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"UNCONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "UNCONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "CONFIRMED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"CONFIRMED">; - type: z.ZodLiteral<"TOP_UP">; -}, "strip", z.ZodTypeAny, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "CONFIRMED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - } & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PENDING_PAYMENT"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; -} & { - status: z.ZodLiteral<"PENDING_PAYMENT">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>; -}, "strip", z.ZodTypeAny, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "PENDING_PAYMENT"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"PRODUCTS">; - products: z.ZodArray; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "atleastone">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "PRODUCTS"; - currency: "USD" | "SAT"; - products: [{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, ...{ - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[]]; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"AMOUNT">; - providedAmount: z.ZodNumber; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "AMOUNT"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - invoiceScid: z.ZodNullable; - totalAmount: z.ZodNumber; - discountAmount: z.ZodNumber; - netAmount: z.ZodNumber; - taxAmount: z.ZodNumber; - invoiceAmountSats: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - status: z.ZodLiteral<"PAYMENT_RECEIVED">; - type: z.ZodLiteral<"TOP_UP">; - invoice: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; - } & { - amountSatsReceived: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }>; -}, "strip", z.ZodTypeAny, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}, { - status: "PAYMENT_RECEIVED"; - type: "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; - }; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number; - discountAmount: number; - netAmount: number; - taxAmount: number; - invoiceAmountSats: number; - invoiceScid: string | null; - btcPrice: number; -}>]>, z.ZodObject<{ - id: z.ZodString; - createdAt: z.ZodDate; - clientSecret: z.ZodString; - organizationId: z.ZodString; - expiresAt: z.ZodDate; - userMetadata: z.ZodNullable>; - customFieldData: z.ZodNullable>; - currency: z.ZodEnum<["USD", "SAT"]>; - allowDiscountCodes: z.ZodBoolean; - requireCustomerData: z.ZodNullable>; - successUrl: z.ZodNullable; - customer: z.ZodNullable>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, "strip", z.ZodString, z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">, z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip">>>; - customerBillingAddress: z.ZodNullable>; - products: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>, "many">>; - productId: z.ZodNullable; - productPriceId: z.ZodNullable; - customAmount: z.ZodNullable; - product: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; - }, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }>>; - providedAmount: z.ZodNullable; - totalAmount: z.ZodNullable; - discountAmount: z.ZodNullable; - netAmount: z.ZodNullable; - taxAmount: z.ZodNullable; - invoiceAmountSats: z.ZodNullable; - invoiceScid: z.ZodNullable; - btcPrice: z.ZodNullable; - invoice: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - }>>; -} & { - status: z.ZodLiteral<"EXPIRED">; - type: z.ZodEnum<["PRODUCTS", "AMOUNT", "TOP_UP"]>; -}, "strip", z.ZodTypeAny, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectOutputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}, { - status: "EXPIRED"; - type: "PRODUCTS" | "AMOUNT" | "TOP_UP"; - currency: "USD" | "SAT"; - products: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - }[] | null; - successUrl: string | null; - allowDiscountCodes: boolean; - customer: z.objectInputType<{ - name: z.ZodOptional>; - email: z.ZodOptional>; - externalId: z.ZodOptional>; - }, z.ZodString, "strip"> | null; - requireCustomerData: string[] | null; - productId: string | null; - invoice: { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; - } | null; - id: string; - createdAt: Date; - clientSecret: string; - organizationId: string; - expiresAt: Date; - userMetadata: Record | null; - customFieldData: Record | null; - customerBillingAddress: Record | null; - productPriceId: string | null; - customAmount: number | null; - product: { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; - } | null; - providedAmount: number | null; - totalAmount: number | null; - discountAmount: number | null; - netAmount: number | null; - taxAmount: number | null; - invoiceAmountSats: number | null; - invoiceScid: string | null; - btcPrice: number | null; -}>]>; -type Checkout = z.infer; - -export { type Checkout, CheckoutSchema, ConfirmedCheckoutSchema, ExpiredCheckoutSchema, PaymentReceivedCheckoutSchema, PendingPaymentCheckoutSchema, UnconfirmedCheckoutSchema }; diff --git a/dist/schemas/checkout.js b/dist/schemas/checkout.js deleted file mode 100644 index 0fb9b2c..0000000 --- a/dist/schemas/checkout.js +++ /dev/null @@ -1,19 +0,0 @@ -import { - CheckoutSchema, - ConfirmedCheckoutSchema, - ExpiredCheckoutSchema, - PaymentReceivedCheckoutSchema, - PendingPaymentCheckoutSchema, - UnconfirmedCheckoutSchema -} from "../chunk-CD2LZX3A.js"; -import "../chunk-T6X3KMH6.js"; -import "../chunk-TGG53ETU.js"; -import "../chunk-6M6LFZ3U.js"; -export { - CheckoutSchema, - ConfirmedCheckoutSchema, - ExpiredCheckoutSchema, - PaymentReceivedCheckoutSchema, - PendingPaymentCheckoutSchema, - UnconfirmedCheckoutSchema -}; diff --git a/dist/schemas/currency.cjs b/dist/schemas/currency.cjs deleted file mode 100644 index 9205b02..0000000 --- a/dist/schemas/currency.cjs +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/schemas/currency.ts -var currency_exports = {}; -__export(currency_exports, { - CurrencySchema: () => CurrencySchema -}); -module.exports = __toCommonJS(currency_exports); -var import_zod = require("zod"); -var CurrencySchema = import_zod.z.enum(["USD", "SAT"]); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - CurrencySchema -}); diff --git a/dist/schemas/currency.d.cts b/dist/schemas/currency.d.cts deleted file mode 100644 index 89ea8c3..0000000 --- a/dist/schemas/currency.d.cts +++ /dev/null @@ -1,11 +0,0 @@ -import { z } from 'zod'; - -/** - * Supported currencies for pricing and payments. - * - USD: US Dollars (amounts in cents) - * - SAT: Satoshis (amounts in whole sats) - */ -declare const CurrencySchema: z.ZodEnum<["USD", "SAT"]>; -type Currency = z.infer; - -export { type Currency, CurrencySchema }; diff --git a/dist/schemas/currency.d.ts b/dist/schemas/currency.d.ts deleted file mode 100644 index 89ea8c3..0000000 --- a/dist/schemas/currency.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { z } from 'zod'; - -/** - * Supported currencies for pricing and payments. - * - USD: US Dollars (amounts in cents) - * - SAT: Satoshis (amounts in whole sats) - */ -declare const CurrencySchema: z.ZodEnum<["USD", "SAT"]>; -type Currency = z.infer; - -export { type Currency, CurrencySchema }; diff --git a/dist/schemas/currency.js b/dist/schemas/currency.js deleted file mode 100644 index 3363402..0000000 --- a/dist/schemas/currency.js +++ /dev/null @@ -1,6 +0,0 @@ -import { - CurrencySchema -} from "../chunk-6M6LFZ3U.js"; -export { - CurrencySchema -}; diff --git a/dist/schemas/invoice.cjs b/dist/schemas/invoice.cjs deleted file mode 100644 index 2500f19..0000000 --- a/dist/schemas/invoice.cjs +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/schemas/invoice.ts -var invoice_exports = {}; -__export(invoice_exports, { - BaseInvoiceSchema: () => BaseInvoiceSchema, - DynamicAmountPendingInvoiceSchema: () => DynamicAmountPendingInvoiceSchema, - FixedAmountPendingInvoiceSchema: () => FixedAmountPendingInvoiceSchema, - PaidInvoiceSchema: () => PaidInvoiceSchema -}); -module.exports = __toCommonJS(invoice_exports); -var import_zod2 = require("zod"); - -// src/schemas/currency.ts -var import_zod = require("zod"); -var CurrencySchema = import_zod.z.enum(["USD", "SAT"]); - -// src/schemas/invoice.ts -var BaseInvoiceSchema = import_zod2.z.object({ - invoice: import_zod2.z.string(), - expiresAt: import_zod2.z.date(), - paymentHash: import_zod2.z.string(), - amountSats: import_zod2.z.number().nullable(), - amountSatsReceived: import_zod2.z.number().nullable(), - currency: CurrencySchema, - fiatAmount: import_zod2.z.number().nullable(), - btcPrice: import_zod2.z.number().nullable() -}); -var FixedAmountPendingInvoiceSchema = BaseInvoiceSchema.extend({ - amountSats: import_zod2.z.number(), - fiatAmount: import_zod2.z.number(), - btcPrice: import_zod2.z.number() -}); -var DynamicAmountPendingInvoiceSchema = BaseInvoiceSchema; -var PaidInvoiceSchema = FixedAmountPendingInvoiceSchema.extend({ - amountSatsReceived: import_zod2.z.number() -}); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - BaseInvoiceSchema, - DynamicAmountPendingInvoiceSchema, - FixedAmountPendingInvoiceSchema, - PaidInvoiceSchema -}); diff --git a/dist/schemas/invoice.d.cts b/dist/schemas/invoice.d.cts deleted file mode 100644 index ddd7f30..0000000 --- a/dist/schemas/invoice.d.cts +++ /dev/null @@ -1,118 +0,0 @@ -import { z } from 'zod'; - -declare const BaseInvoiceSchema: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; -}, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; -}, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; -}>; -declare const FixedAmountPendingInvoiceSchema: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; -} & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; -}, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; -}>; -declare const DynamicAmountPendingInvoiceSchema: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; -}, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; -}, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; -}>; -declare const PaidInvoiceSchema: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - amountSatsReceived: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; -}, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; -}>; - -export { BaseInvoiceSchema, DynamicAmountPendingInvoiceSchema, FixedAmountPendingInvoiceSchema, PaidInvoiceSchema }; diff --git a/dist/schemas/invoice.d.ts b/dist/schemas/invoice.d.ts deleted file mode 100644 index ddd7f30..0000000 --- a/dist/schemas/invoice.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { z } from 'zod'; - -declare const BaseInvoiceSchema: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; -}, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; -}, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; -}>; -declare const FixedAmountPendingInvoiceSchema: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; -} & { - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; -}, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number | null; - fiatAmount: number; -}>; -declare const DynamicAmountPendingInvoiceSchema: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - amountSats: z.ZodNullable; - amountSatsReceived: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - fiatAmount: z.ZodNullable; - btcPrice: z.ZodNullable; -}, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; -}, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number | null; - expiresAt: Date; - btcPrice: number | null; - amountSatsReceived: number | null; - fiatAmount: number | null; -}>; -declare const PaidInvoiceSchema: z.ZodObject<{ - invoice: z.ZodString; - expiresAt: z.ZodDate; - paymentHash: z.ZodString; - currency: z.ZodEnum<["USD", "SAT"]>; - amountSats: z.ZodNumber; - fiatAmount: z.ZodNumber; - btcPrice: z.ZodNumber; -} & { - amountSatsReceived: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; -}, { - currency: "USD" | "SAT"; - invoice: string; - paymentHash: string; - amountSats: number; - expiresAt: Date; - btcPrice: number; - amountSatsReceived: number; - fiatAmount: number; -}>; - -export { BaseInvoiceSchema, DynamicAmountPendingInvoiceSchema, FixedAmountPendingInvoiceSchema, PaidInvoiceSchema }; diff --git a/dist/schemas/invoice.js b/dist/schemas/invoice.js deleted file mode 100644 index 1f13055..0000000 --- a/dist/schemas/invoice.js +++ /dev/null @@ -1,13 +0,0 @@ -import { - BaseInvoiceSchema, - DynamicAmountPendingInvoiceSchema, - FixedAmountPendingInvoiceSchema, - PaidInvoiceSchema -} from "../chunk-TGG53ETU.js"; -import "../chunk-6M6LFZ3U.js"; -export { - BaseInvoiceSchema, - DynamicAmountPendingInvoiceSchema, - FixedAmountPendingInvoiceSchema, - PaidInvoiceSchema -}; diff --git a/dist/schemas/onboarding.cjs b/dist/schemas/onboarding.cjs deleted file mode 100644 index 5adf72b..0000000 --- a/dist/schemas/onboarding.cjs +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/schemas/onboarding.ts -var onboarding_exports = {}; -__export(onboarding_exports, { - BootstrapInputSchema: () => BootstrapInputSchema, - BootstrapOutputSchema: () => BootstrapOutputSchema, - PollDeviceAuthInputSchema: () => PollDeviceAuthInputSchema, - PollDeviceAuthOutputSchema: () => PollDeviceAuthOutputSchema, - StartDeviceAuthInputSchema: () => StartDeviceAuthInputSchema, - StartDeviceAuthOutputSchema: () => StartDeviceAuthOutputSchema -}); -module.exports = __toCommonJS(onboarding_exports); -var import_zod = require("zod"); -var StartDeviceAuthInputSchema = import_zod.z.object({ - clientDisplayName: import_zod.z.string().optional(), - webhookUrl: import_zod.z.string().url().optional(), - forceNewWebhook: import_zod.z.boolean().optional() -}); -var StartDeviceAuthOutputSchema = import_zod.z.object({ - deviceCode: import_zod.z.string(), - userCode: import_zod.z.string(), - verificationUri: import_zod.z.string().url(), - expiresIn: import_zod.z.number().int().positive(), - interval: import_zod.z.number().int().positive() -}); -var PollDeviceAuthInputSchema = import_zod.z.object({ - deviceCode: import_zod.z.string() -}); -var PollDeviceAuthOutputSchema = import_zod.z.discriminatedUnion("status", [ - import_zod.z.object({ - status: import_zod.z.literal("pending"), - expiresIn: import_zod.z.number().int().nonnegative() - }), - import_zod.z.object({ - status: import_zod.z.literal("authorized"), - bootstrapToken: import_zod.z.string(), - expiresIn: import_zod.z.number().int().nonnegative().optional() - }), - import_zod.z.object({ - status: import_zod.z.literal("expired") - }), - import_zod.z.object({ - status: import_zod.z.literal("denied") - }) -]); -var BootstrapInputSchema = import_zod.z.object({ - bootstrapToken: import_zod.z.string(), - webhookUrl: import_zod.z.string().url().optional(), - projectName: import_zod.z.string().optional(), - forceNewWebhook: import_zod.z.boolean().optional() -}); -var BootstrapOutputSchema = import_zod.z.object({ - apiKey: import_zod.z.string(), - apiKeyPreview: import_zod.z.string(), - apiKeyId: import_zod.z.string(), - webhookId: import_zod.z.string(), - webhookSecret: import_zod.z.string(), - organizationId: import_zod.z.string(), - webhookUrl: import_zod.z.string().url() -}); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - BootstrapInputSchema, - BootstrapOutputSchema, - PollDeviceAuthInputSchema, - PollDeviceAuthOutputSchema, - StartDeviceAuthInputSchema, - StartDeviceAuthOutputSchema -}); diff --git a/dist/schemas/onboarding.d.cts b/dist/schemas/onboarding.d.cts deleted file mode 100644 index 463b998..0000000 --- a/dist/schemas/onboarding.d.cts +++ /dev/null @@ -1,118 +0,0 @@ -import { z } from 'zod'; - -declare const StartDeviceAuthInputSchema: z.ZodObject<{ - clientDisplayName: z.ZodOptional; - webhookUrl: z.ZodOptional; - forceNewWebhook: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - clientDisplayName?: string | undefined; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; -}, { - clientDisplayName?: string | undefined; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; -}>; -declare const StartDeviceAuthOutputSchema: z.ZodObject<{ - deviceCode: z.ZodString; - userCode: z.ZodString; - verificationUri: z.ZodString; - expiresIn: z.ZodNumber; - interval: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - deviceCode: string; - userCode: string; - verificationUri: string; - expiresIn: number; - interval: number; -}, { - deviceCode: string; - userCode: string; - verificationUri: string; - expiresIn: number; - interval: number; -}>; -declare const PollDeviceAuthInputSchema: z.ZodObject<{ - deviceCode: z.ZodString; -}, "strip", z.ZodTypeAny, { - deviceCode: string; -}, { - deviceCode: string; -}>; -declare const PollDeviceAuthOutputSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ - status: z.ZodLiteral<"pending">; - expiresIn: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "pending"; - expiresIn: number; -}, { - status: "pending"; - expiresIn: number; -}>, z.ZodObject<{ - status: z.ZodLiteral<"authorized">; - bootstrapToken: z.ZodString; - expiresIn: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - status: "authorized"; - bootstrapToken: string; - expiresIn?: number | undefined; -}, { - status: "authorized"; - bootstrapToken: string; - expiresIn?: number | undefined; -}>, z.ZodObject<{ - status: z.ZodLiteral<"expired">; -}, "strip", z.ZodTypeAny, { - status: "expired"; -}, { - status: "expired"; -}>, z.ZodObject<{ - status: z.ZodLiteral<"denied">; -}, "strip", z.ZodTypeAny, { - status: "denied"; -}, { - status: "denied"; -}>]>; -declare const BootstrapInputSchema: z.ZodObject<{ - bootstrapToken: z.ZodString; - webhookUrl: z.ZodOptional; - projectName: z.ZodOptional; - forceNewWebhook: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - bootstrapToken: string; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - projectName?: string | undefined; -}, { - bootstrapToken: string; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - projectName?: string | undefined; -}>; -declare const BootstrapOutputSchema: z.ZodObject<{ - apiKey: z.ZodString; - apiKeyPreview: z.ZodString; - apiKeyId: z.ZodString; - webhookId: z.ZodString; - webhookSecret: z.ZodString; - organizationId: z.ZodString; - webhookUrl: z.ZodString; -}, "strip", z.ZodTypeAny, { - organizationId: string; - webhookUrl: string; - apiKey: string; - apiKeyPreview: string; - apiKeyId: string; - webhookId: string; - webhookSecret: string; -}, { - organizationId: string; - webhookUrl: string; - apiKey: string; - apiKeyPreview: string; - apiKeyId: string; - webhookId: string; - webhookSecret: string; -}>; - -export { BootstrapInputSchema, BootstrapOutputSchema, PollDeviceAuthInputSchema, PollDeviceAuthOutputSchema, StartDeviceAuthInputSchema, StartDeviceAuthOutputSchema }; diff --git a/dist/schemas/onboarding.d.ts b/dist/schemas/onboarding.d.ts deleted file mode 100644 index 463b998..0000000 --- a/dist/schemas/onboarding.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { z } from 'zod'; - -declare const StartDeviceAuthInputSchema: z.ZodObject<{ - clientDisplayName: z.ZodOptional; - webhookUrl: z.ZodOptional; - forceNewWebhook: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - clientDisplayName?: string | undefined; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; -}, { - clientDisplayName?: string | undefined; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; -}>; -declare const StartDeviceAuthOutputSchema: z.ZodObject<{ - deviceCode: z.ZodString; - userCode: z.ZodString; - verificationUri: z.ZodString; - expiresIn: z.ZodNumber; - interval: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - deviceCode: string; - userCode: string; - verificationUri: string; - expiresIn: number; - interval: number; -}, { - deviceCode: string; - userCode: string; - verificationUri: string; - expiresIn: number; - interval: number; -}>; -declare const PollDeviceAuthInputSchema: z.ZodObject<{ - deviceCode: z.ZodString; -}, "strip", z.ZodTypeAny, { - deviceCode: string; -}, { - deviceCode: string; -}>; -declare const PollDeviceAuthOutputSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ - status: z.ZodLiteral<"pending">; - expiresIn: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - status: "pending"; - expiresIn: number; -}, { - status: "pending"; - expiresIn: number; -}>, z.ZodObject<{ - status: z.ZodLiteral<"authorized">; - bootstrapToken: z.ZodString; - expiresIn: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - status: "authorized"; - bootstrapToken: string; - expiresIn?: number | undefined; -}, { - status: "authorized"; - bootstrapToken: string; - expiresIn?: number | undefined; -}>, z.ZodObject<{ - status: z.ZodLiteral<"expired">; -}, "strip", z.ZodTypeAny, { - status: "expired"; -}, { - status: "expired"; -}>, z.ZodObject<{ - status: z.ZodLiteral<"denied">; -}, "strip", z.ZodTypeAny, { - status: "denied"; -}, { - status: "denied"; -}>]>; -declare const BootstrapInputSchema: z.ZodObject<{ - bootstrapToken: z.ZodString; - webhookUrl: z.ZodOptional; - projectName: z.ZodOptional; - forceNewWebhook: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - bootstrapToken: string; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - projectName?: string | undefined; -}, { - bootstrapToken: string; - webhookUrl?: string | undefined; - forceNewWebhook?: boolean | undefined; - projectName?: string | undefined; -}>; -declare const BootstrapOutputSchema: z.ZodObject<{ - apiKey: z.ZodString; - apiKeyPreview: z.ZodString; - apiKeyId: z.ZodString; - webhookId: z.ZodString; - webhookSecret: z.ZodString; - organizationId: z.ZodString; - webhookUrl: z.ZodString; -}, "strip", z.ZodTypeAny, { - organizationId: string; - webhookUrl: string; - apiKey: string; - apiKeyPreview: string; - apiKeyId: string; - webhookId: string; - webhookSecret: string; -}, { - organizationId: string; - webhookUrl: string; - apiKey: string; - apiKeyPreview: string; - apiKeyId: string; - webhookId: string; - webhookSecret: string; -}>; - -export { BootstrapInputSchema, BootstrapOutputSchema, PollDeviceAuthInputSchema, PollDeviceAuthOutputSchema, StartDeviceAuthInputSchema, StartDeviceAuthOutputSchema }; diff --git a/dist/schemas/onboarding.js b/dist/schemas/onboarding.js deleted file mode 100644 index b985f4a..0000000 --- a/dist/schemas/onboarding.js +++ /dev/null @@ -1,16 +0,0 @@ -import { - BootstrapInputSchema, - BootstrapOutputSchema, - PollDeviceAuthInputSchema, - PollDeviceAuthOutputSchema, - StartDeviceAuthInputSchema, - StartDeviceAuthOutputSchema -} from "../chunk-WJ6HHWDE.js"; -export { - BootstrapInputSchema, - BootstrapOutputSchema, - PollDeviceAuthInputSchema, - PollDeviceAuthOutputSchema, - StartDeviceAuthInputSchema, - StartDeviceAuthOutputSchema -}; diff --git a/dist/schemas/product.cjs b/dist/schemas/product.cjs deleted file mode 100644 index 1a05971..0000000 --- a/dist/schemas/product.cjs +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/schemas/product.ts -var product_exports = {}; -__export(product_exports, { - CheckoutProductPriceSchema: () => CheckoutProductPriceSchema, - CheckoutProductSchema: () => CheckoutProductSchema -}); -module.exports = __toCommonJS(product_exports); -var import_zod2 = require("zod"); - -// src/schemas/currency.ts -var import_zod = require("zod"); -var CurrencySchema = import_zod.z.enum(["USD", "SAT"]); - -// src/schemas/product.ts -var CheckoutProductPriceSchema = import_zod2.z.object({ - id: import_zod2.z.string(), - amountType: import_zod2.z.enum(["FIXED", "CUSTOM"]), - priceAmount: import_zod2.z.number().nullable(), - currency: CurrencySchema -}); -var CheckoutProductSchema = import_zod2.z.object({ - id: import_zod2.z.string(), - name: import_zod2.z.string(), - description: import_zod2.z.string().nullable(), - recurringInterval: import_zod2.z.enum(["MONTH", "QUARTER", "YEAR"]).nullable(), - prices: import_zod2.z.array(CheckoutProductPriceSchema) -}); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - CheckoutProductPriceSchema, - CheckoutProductSchema -}); diff --git a/dist/schemas/product.d.cts b/dist/schemas/product.d.cts deleted file mode 100644 index ec27ada..0000000 --- a/dist/schemas/product.d.cts +++ /dev/null @@ -1,64 +0,0 @@ -import { z } from 'zod'; - -declare const CheckoutProductPriceSchema: z.ZodObject<{ - id: z.ZodString; - amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; -}, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; -}, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; -}>; -declare const CheckoutProductSchema: z.ZodObject<{ - id: z.ZodString; - name: z.ZodString; - description: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; -}, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; -}, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; -}>; - -export { CheckoutProductPriceSchema, CheckoutProductSchema }; diff --git a/dist/schemas/product.d.ts b/dist/schemas/product.d.ts deleted file mode 100644 index ec27ada..0000000 --- a/dist/schemas/product.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { z } from 'zod'; - -declare const CheckoutProductPriceSchema: z.ZodObject<{ - id: z.ZodString; - amountType: z.ZodEnum<["FIXED", "CUSTOM"]>; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; -}, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; -}, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; -}>; -declare const CheckoutProductSchema: z.ZodObject<{ - id: z.ZodString; - name: z.ZodString; - description: z.ZodNullable; - recurringInterval: z.ZodNullable>; - prices: z.ZodArray; - priceAmount: z.ZodNullable; - currency: z.ZodEnum<["USD", "SAT"]>; - }, "strip", z.ZodTypeAny, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }, { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }>, "many">; -}, "strip", z.ZodTypeAny, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; -}, { - name: string; - id: string; - description: string | null; - recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null; - prices: { - currency: "USD" | "SAT"; - priceAmount: number | null; - id: string; - amountType: "FIXED" | "CUSTOM"; - }[]; -}>; - -export { CheckoutProductPriceSchema, CheckoutProductSchema }; diff --git a/dist/schemas/product.js b/dist/schemas/product.js deleted file mode 100644 index 57d42b6..0000000 --- a/dist/schemas/product.js +++ /dev/null @@ -1,9 +0,0 @@ -import { - CheckoutProductPriceSchema, - CheckoutProductSchema -} from "../chunk-T6X3KMH6.js"; -import "../chunk-6M6LFZ3U.js"; -export { - CheckoutProductPriceSchema, - CheckoutProductSchema -}; diff --git a/dist/validation/metadata-validation.cjs b/dist/validation/metadata-validation.cjs deleted file mode 100644 index d8b999b..0000000 --- a/dist/validation/metadata-validation.cjs +++ /dev/null @@ -1,154 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/validation/metadata-validation.ts -var metadata_validation_exports = {}; -__export(metadata_validation_exports, { - MAX_KEY_COUNT: () => MAX_KEY_COUNT, - MAX_KEY_LENGTH: () => MAX_KEY_LENGTH, - MAX_METADATA_SIZE_BYTES: () => MAX_METADATA_SIZE_BYTES, - validateMetadata: () => validateMetadata -}); -module.exports = __toCommonJS(metadata_validation_exports); - -// src/lib/utils.ts -function ok(value) { - return { ok: true, value }; -} -function err(error) { - return { ok: false, error }; -} - -// src/validation/metadata-validation.ts -var MAX_METADATA_SIZE_BYTES = 1024; -var MAX_KEY_LENGTH = 100; -var MAX_KEY_COUNT = 50; -var CONTROL_CHAR_PATTERN = /[\x00-\x08\x0B-\x0C\x0E-\x1F]/; -var VALID_KEY_PATTERN = /^[a-zA-Z0-9_-]+$/; -function validateKeyFormat(key) { - if (!VALID_KEY_PATTERN.test(key)) { - const message = key === "" ? "Metadata keys cannot be empty" : `Metadata key "${key}" contains invalid characters. Keys must contain only letters, numbers, underscores, and hyphens.`; - return err({ type: "invalid_key_format", message }); - } - return ok(void 0); -} -function validateKeyLength(key) { - if (key.length > MAX_KEY_LENGTH) { - return err({ - type: "key_too_long", - message: `Metadata key "${key}" exceeds maximum length of ${MAX_KEY_LENGTH} characters` - }); - } - return ok(void 0); -} -function validateNullBytes(key, value) { - if (value.includes("\0")) { - return err({ - type: "control_character", - message: `Metadata value for key "${key}" cannot contain null bytes` - }); - } - return ok(void 0); -} -function validateControlCharacters(key, value) { - if (CONTROL_CHAR_PATTERN.test(value)) { - return err({ - type: "control_character", - message: `Metadata value for key "${key}" cannot contain control characters` - }); - } - return ok(void 0); -} -function validateUtf8Encoding(key, value) { - try { - const encoded = new TextEncoder().encode(value); - new TextDecoder("utf-8", { fatal: true }).decode(encoded); - } catch { - return err({ - type: "invalid_encoding", - message: `Metadata value for key "${key}" contains invalid UTF-8 encoding` - }); - } - return ok(void 0); -} -function validateMetadataSize(metadata) { - const serialized = JSON.stringify(metadata); - const sizeBytes = new TextEncoder().encode(serialized).length; - if (sizeBytes > MAX_METADATA_SIZE_BYTES) { - return err({ - type: "size_exceeded", - message: `Metadata size (${sizeBytes} bytes) exceeds maximum allowed size (${MAX_METADATA_SIZE_BYTES} bytes). To fix this, reduce the size of your metadata values or remove unnecessary fields.` - }); - } - return ok(void 0); -} -function validateKey(key) { - const formatCheck = validateKeyFormat(key); - if (!formatCheck.ok) return formatCheck; - const lengthCheck = validateKeyLength(key); - if (!lengthCheck.ok) return lengthCheck; - return ok(void 0); -} -function validateValue(key, value) { - const nullByteCheck = validateNullBytes(key, value); - if (!nullByteCheck.ok) return nullByteCheck; - const controlCharCheck = validateControlCharacters(key, value); - if (!controlCharCheck.ok) return controlCharCheck; - const encodingCheck = validateUtf8Encoding(key, value); - if (!encodingCheck.ok) return encodingCheck; - return ok(void 0); -} -function validateMetadata(metadata) { - if (!metadata) { - return ok(void 0); - } - const errors = []; - const keyCount = Object.keys(metadata).length; - if (keyCount > MAX_KEY_COUNT) { - errors.push({ - type: "key_count_exceeded", - message: `Metadata contains ${keyCount} keys, which exceeds the maximum of ${MAX_KEY_COUNT} keys` - }); - } - for (const [key, value] of Object.entries(metadata)) { - const keyCheck = validateKey(key); - if (!keyCheck.ok) { - errors.push(keyCheck.error); - } - const valueCheck = validateValue(key, value); - if (!valueCheck.ok) { - errors.push(valueCheck.error); - } - } - const sizeCheck = validateMetadataSize(metadata); - if (!sizeCheck.ok) { - errors.push(sizeCheck.error); - } - if (errors.length > 0) { - return err(errors); - } - return ok(void 0); -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - MAX_KEY_COUNT, - MAX_KEY_LENGTH, - MAX_METADATA_SIZE_BYTES, - validateMetadata -}); diff --git a/dist/validation/metadata-validation.d.cts b/dist/validation/metadata-validation.d.cts deleted file mode 100644 index 6d595e8..0000000 --- a/dist/validation/metadata-validation.d.cts +++ /dev/null @@ -1,19 +0,0 @@ -import { Result } from '../lib/utils.cjs'; - -declare const MAX_METADATA_SIZE_BYTES = 1024; -declare const MAX_KEY_LENGTH = 100; -declare const MAX_KEY_COUNT = 50; -type MetadataValidationError = { - type: string; - message: string; -}; -/** - * Validates checkout metadata against all security constraints. - * Returns all validation errors found, allowing users to fix multiple issues at once. - * - * @param metadata - The metadata object to validate, or undefined - * @returns A Result containing either success (ok: true) or an array of validation errors (ok: false) - */ -declare function validateMetadata(metadata: Record | undefined): Result; - -export { MAX_KEY_COUNT, MAX_KEY_LENGTH, MAX_METADATA_SIZE_BYTES, type MetadataValidationError, validateMetadata }; diff --git a/dist/validation/metadata-validation.d.ts b/dist/validation/metadata-validation.d.ts deleted file mode 100644 index a17430a..0000000 --- a/dist/validation/metadata-validation.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Result } from '../lib/utils.js'; - -declare const MAX_METADATA_SIZE_BYTES = 1024; -declare const MAX_KEY_LENGTH = 100; -declare const MAX_KEY_COUNT = 50; -type MetadataValidationError = { - type: string; - message: string; -}; -/** - * Validates checkout metadata against all security constraints. - * Returns all validation errors found, allowing users to fix multiple issues at once. - * - * @param metadata - The metadata object to validate, or undefined - * @returns A Result containing either success (ok: true) or an array of validation errors (ok: false) - */ -declare function validateMetadata(metadata: Record | undefined): Result; - -export { MAX_KEY_COUNT, MAX_KEY_LENGTH, MAX_METADATA_SIZE_BYTES, type MetadataValidationError, validateMetadata }; diff --git a/dist/validation/metadata-validation.js b/dist/validation/metadata-validation.js deleted file mode 100644 index 77173d8..0000000 --- a/dist/validation/metadata-validation.js +++ /dev/null @@ -1,13 +0,0 @@ -import { - MAX_KEY_COUNT, - MAX_KEY_LENGTH, - MAX_METADATA_SIZE_BYTES, - validateMetadata -} from "../chunk-DVDEDUJU.js"; -import "../chunk-OJKHC5SH.js"; -export { - MAX_KEY_COUNT, - MAX_KEY_LENGTH, - MAX_METADATA_SIZE_BYTES, - validateMetadata -};