bitpay-sdk
Version:
Complete version of the NodeJS library for the new cryptographically secure BitPay API
88 lines (87 loc) • 3.09 kB
TypeScript
import { z } from 'zod';
export declare const payoutWebhookSchema: z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
recipientId: z.ZodOptional<z.ZodString>;
shopperId: z.ZodOptional<z.ZodString>;
price: z.ZodOptional<z.ZodNumber>;
currency: z.ZodOptional<z.ZodString>;
ledgerCurrency: z.ZodOptional<z.ZodString>;
exchangeRates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
email: z.ZodOptional<z.ZodString>;
reference: z.ZodOptional<z.ZodString>;
label: z.ZodOptional<z.ZodString>;
notificationUrl: z.ZodOptional<z.ZodString>;
notificationEmail: z.ZodOptional<z.ZodString>;
effectiveDate: z.ZodOptional<z.ZodString>;
requestDate: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<z.ZodString>;
transactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
txid: z.ZodString;
amount: z.ZodNumber;
date: z.ZodString;
confirmations: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
date: string;
amount: number;
txid: string;
confirmations?: number | undefined;
}, {
date: string;
amount: number;
txid: string;
confirmations?: number | undefined;
}>, "many">>;
accountId: z.ZodOptional<z.ZodString>;
date: z.ZodOptional<z.ZodString>;
groupId: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
currency?: string | undefined;
id?: string | undefined;
label?: string | undefined;
email?: string | undefined;
status?: string | undefined;
date?: string | undefined;
price?: number | undefined;
transactions?: {
date: string;
amount: number;
txid: string;
confirmations?: number | undefined;
}[] | undefined;
notificationEmail?: string | undefined;
exchangeRates?: Record<string, Record<string, number>> | undefined;
requestDate?: string | undefined;
reference?: string | undefined;
effectiveDate?: string | undefined;
ledgerCurrency?: string | undefined;
accountId?: string | undefined;
recipientId?: string | undefined;
shopperId?: string | undefined;
groupId?: string | undefined;
notificationUrl?: string | undefined;
}, {
currency?: string | undefined;
id?: string | undefined;
label?: string | undefined;
email?: string | undefined;
status?: string | undefined;
date?: string | undefined;
price?: number | undefined;
transactions?: {
date: string;
amount: number;
txid: string;
confirmations?: number | undefined;
}[] | undefined;
notificationEmail?: string | undefined;
exchangeRates?: Record<string, Record<string, number>> | undefined;
requestDate?: string | undefined;
reference?: string | undefined;
effectiveDate?: string | undefined;
ledgerCurrency?: string | undefined;
accountId?: string | undefined;
recipientId?: string | undefined;
shopperId?: string | undefined;
groupId?: string | undefined;
notificationUrl?: string | undefined;
}>;