bitpay-sdk
Version:
Complete version of the NodeJS library for the new cryptographically secure BitPay API
115 lines (114 loc) • 4.66 kB
TypeScript
import { z } from 'zod';
export declare const invoiceWebhookSchema: z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
url: z.ZodOptional<z.ZodString>;
posData: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<z.ZodString>;
price: z.ZodOptional<z.ZodString>;
currency: z.ZodOptional<z.ZodString>;
invoiceTime: z.ZodOptional<z.ZodString>;
currencyTime: z.ZodOptional<z.ZodString>;
exceptionStatus: z.ZodOptional<z.ZodString>;
buyerFields: z.ZodOptional<z.ZodObject<{
buyerName: z.ZodOptional<z.ZodString>;
buyerAddress1: z.ZodOptional<z.ZodString>;
buyerAddress2: z.ZodOptional<z.ZodString>;
buyerCity: z.ZodOptional<z.ZodString>;
buyerState: z.ZodOptional<z.ZodString>;
buyerZip: z.ZodOptional<z.ZodString>;
buyerCountry: z.ZodOptional<z.ZodString>;
buyerPhone: z.ZodOptional<z.ZodString>;
buyerNotify: z.ZodOptional<z.ZodBoolean>;
buyerEmail: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
buyerName?: string | undefined;
buyerAddress1?: string | undefined;
buyerAddress2?: string | undefined;
buyerCity?: string | undefined;
buyerState?: string | undefined;
buyerZip?: string | undefined;
buyerCountry?: string | undefined;
buyerPhone?: string | undefined;
buyerNotify?: boolean | undefined;
buyerEmail?: string | undefined;
}, {
buyerName?: string | undefined;
buyerAddress1?: string | undefined;
buyerAddress2?: string | undefined;
buyerCity?: string | undefined;
buyerState?: string | undefined;
buyerZip?: string | undefined;
buyerCountry?: string | undefined;
buyerPhone?: string | undefined;
buyerNotify?: boolean | undefined;
buyerEmail?: string | undefined;
}>>;
paymentSubtotals: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNumber>>;
paymentTotals: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNumber>>;
exchangeRates: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
amountPaid: z.ZodOptional<z.ZodNumber>;
orderId: z.ZodOptional<z.ZodString>;
transactionCurrency: z.ZodOptional<z.ZodString>;
inInvoiceId: z.ZodOptional<z.ZodString>;
inPaymentRequest: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
exchangeRates: Record<string, Record<string, number>> | null;
paymentSubtotals: Record<string, number> | null;
paymentTotals: Record<string, number> | null;
currency?: string | undefined;
id?: string | undefined;
url?: string | undefined;
status?: string | undefined;
price?: string | undefined;
posData?: string | undefined;
orderId?: string | undefined;
invoiceTime?: string | undefined;
exceptionStatus?: string | undefined;
transactionCurrency?: string | undefined;
amountPaid?: number | undefined;
buyerFields?: {
buyerName?: string | undefined;
buyerAddress1?: string | undefined;
buyerAddress2?: string | undefined;
buyerCity?: string | undefined;
buyerState?: string | undefined;
buyerZip?: string | undefined;
buyerCountry?: string | undefined;
buyerPhone?: string | undefined;
buyerNotify?: boolean | undefined;
buyerEmail?: string | undefined;
} | undefined;
currencyTime?: string | undefined;
inInvoiceId?: string | undefined;
inPaymentRequest?: string | undefined;
}, {
exchangeRates: Record<string, Record<string, number>> | null;
paymentSubtotals: Record<string, number> | null;
paymentTotals: Record<string, number> | null;
currency?: string | undefined;
id?: string | undefined;
url?: string | undefined;
status?: string | undefined;
price?: string | undefined;
posData?: string | undefined;
orderId?: string | undefined;
invoiceTime?: string | undefined;
exceptionStatus?: string | undefined;
transactionCurrency?: string | undefined;
amountPaid?: number | undefined;
buyerFields?: {
buyerName?: string | undefined;
buyerAddress1?: string | undefined;
buyerAddress2?: string | undefined;
buyerCity?: string | undefined;
buyerState?: string | undefined;
buyerZip?: string | undefined;
buyerCountry?: string | undefined;
buyerPhone?: string | undefined;
buyerNotify?: boolean | undefined;
buyerEmail?: string | undefined;
} | undefined;
currencyTime?: string | undefined;
inInvoiceId?: string | undefined;
inPaymentRequest?: string | undefined;
}>;