UNPKG

bitpay-sdk

Version:

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

74 lines 4.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.invoiceSchema = void 0; const zod_1 = require("zod"); const Buyer_zod_1 = require("./Buyer.zod"); const InvoiceTransaction_zod_1 = require("./InvoiceTransaction.zod"); const InvoiceBuyerProvidedInfo_zod_1 = require("./InvoiceBuyerProvidedInfo.zod"); const InvoiceUniversalCodes_zod_1 = require("./InvoiceUniversalCodes.zod"); const RefundInfo_zod_1 = require("./RefundInfo.zod"); const Shopper_zod_1 = require("./Shopper.zod"); const MinerFeesItem_zod_1 = require("./MinerFeesItem.zod"); const SupportedTransactionCurrency_zod_1 = require("./SupportedTransactionCurrency.zod"); const InvoiceRefundAddresses_zod_1 = require("./InvoiceRefundAddresses.zod"); exports.invoiceSchema = zod_1.z.object({ buyer: Buyer_zod_1.buyerInterfaceSchema.optional(), transactions: InvoiceTransaction_zod_1.invoiceTransactionSchema.array().optional(), buyerProvidedInfo: InvoiceBuyerProvidedInfo_zod_1.invoiceBuyerProvidedInfoSchema.optional(), supportedTransactionCurrencies: zod_1.z.record(zod_1.z.string(), SupportedTransactionCurrency_zod_1.supportedTransactionCurrencySchema).optional(), minerFees: zod_1.z.record(zod_1.z.string(), MinerFeesItem_zod_1.minerFeesItemSchema).optional(), shopper: Shopper_zod_1.shopperSchema.optional(), refundInfo: RefundInfo_zod_1.refundInfoSchema.optional(), universalCodes: InvoiceUniversalCodes_zod_1.invoiceUniversalCodesSchema.optional(), currency: zod_1.z.string().optional(), guid: zod_1.z.string().optional(), token: zod_1.z.string().optional(), price: zod_1.z.number().optional(), posData: zod_1.z.string().optional(), notificationURL: zod_1.z.string().optional(), transactionSpeed: zod_1.z.string().optional(), fullNotifications: zod_1.z.boolean().optional(), notificationEmail: zod_1.z.string().optional(), redirectURL: zod_1.z.string().optional(), closeURL: zod_1.z.string().optional(), orderId: zod_1.z.string().optional(), itemDesc: zod_1.z.string().optional(), itemCode: zod_1.z.string().optional(), physical: zod_1.z.boolean().optional(), paymentCurrencies: zod_1.z.array(zod_1.z.string()).optional(), acceptanceWindow: zod_1.z.number().optional(), autoRedirect: zod_1.z.boolean().optional(), forcedBuyerSelectedWallet: zod_1.z.string().optional(), forcedBuyerSelectedTransactionCurrency: zod_1.z.string().optional(), id: zod_1.z.string().optional(), url: zod_1.z.string().optional(), status: zod_1.z.string().optional(), lowFeeDetected: zod_1.z.boolean().optional(), invoiceTime: zod_1.z.number().optional(), expirationTime: zod_1.z.number().optional(), currentTime: zod_1.z.number().optional(), exceptionStatus: zod_1.z.union([zod_1.z.boolean(), zod_1.z.string()]).optional(), targetConfirmations: zod_1.z.number().optional(), refundAddresses: zod_1.z.array(zod_1.z.record(zod_1.z.string(), InvoiceRefundAddresses_zod_1.invoiceRefundAddressesSchema)).optional(), refundAddressRequestPending: zod_1.z.boolean().optional(), buyerProvidedEmail: zod_1.z.string().optional(), billId: zod_1.z.string().optional(), extendedNotifications: zod_1.z.boolean().optional(), transactionCurrency: zod_1.z.string().optional(), amountPaid: zod_1.z.number().optional(), displayAmountPaid: zod_1.z.string().optional(), exchangeRates: zod_1.z.record(zod_1.z.record(zod_1.z.number())).nullable(), paymentSubtotals: zod_1.z.record(zod_1.z.number()).nullable(), paymentTotals: zod_1.z.record(zod_1.z.number()).nullable(), paymentDisplayTotals: zod_1.z.record(zod_1.z.string()).nullable(), paymentDisplaySubTotals: zod_1.z.record(zod_1.z.string()).nullable(), nonPayProPaymentReceived: zod_1.z.boolean().optional(), jsonPayProRequired: zod_1.z.boolean().optional(), merchantName: zod_1.z.string().optional(), bitpayIdRequired: zod_1.z.boolean().optional(), underpaidAmount: zod_1.z.number().optional(), overpaidAmount: zod_1.z.number().optional(), paymentCodes: zod_1.z.record(zod_1.z.record(zod_1.z.string())).nullable(), isCancelled: zod_1.z.boolean().optional() }); //# sourceMappingURL=Invoice.zod.js.map