// This file is auto-generated by scripts/generate-schemas.ts // Do not edit manually. import { z } from "zod"; import { CustomerResourceIdentifierSchema, CustomFieldsDraftSchema, MoneySchema, PaymentMethodInfoDraftSchema, PaymentStatusDraftSchema, TransactionDraftSchema, } from "./common.ts"; export const PaymentDraftSchema = z.object({ customer: CustomerResourceIdentifierSchema.nullish(), anonymousId: z.string().nullish(), externalId: z.string().nullish(), interfaceId: z.string().nullish(), amountPlanned: MoneySchema, amountAuthorized: MoneySchema.nullish(), authorizedUntil: z.string().nullish(), amountPaid: MoneySchema.nullish(), amountRefunded: MoneySchema.nullish(), paymentMethodInfo: PaymentMethodInfoDraftSchema.nullish(), paymentStatus: PaymentStatusDraftSchema.nullish(), transactions: z.array(TransactionDraftSchema).nullish(), interfaceInteractions: z.array(CustomFieldsDraftSchema).nullish(), custom: CustomFieldsDraftSchema.nullish(), key: z.string().nullish(), });