UNPKG

bitpay-sdk

Version:

Complete version of the NodeJS library for the new cryptographically secure BitPay API

26 lines 1.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.invoiceWebhookSchema = void 0; const zod_1 = require("zod"); const InvoiceWebhookBuyerFields_zod_1 = require("./InvoiceWebhookBuyerFields.zod"); exports.invoiceWebhookSchema = zod_1.z.object({ id: zod_1.z.string().optional(), url: zod_1.z.string().optional(), posData: zod_1.z.string().optional(), status: zod_1.z.string().optional(), price: zod_1.z.string().optional(), currency: zod_1.z.string().optional(), invoiceTime: zod_1.z.string().optional(), currencyTime: zod_1.z.string().optional(), exceptionStatus: zod_1.z.string().optional(), buyerFields: InvoiceWebhookBuyerFields_zod_1.invoiceWebhookBuyerFieldsInterfaceSchema.optional(), paymentSubtotals: zod_1.z.record(zod_1.z.number()).nullable(), paymentTotals: zod_1.z.record(zod_1.z.number()).nullable(), exchangeRates: zod_1.z.record(zod_1.z.record(zod_1.z.number())).nullable(), amountPaid: zod_1.z.number().optional(), orderId: zod_1.z.string().optional(), transactionCurrency: zod_1.z.string().optional(), inInvoiceId: zod_1.z.string().optional(), inPaymentRequest: zod_1.z.string().optional() }); //# sourceMappingURL=InvoiceWebhook.zod.js.map