Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

735 B
Raw Blame
// This file is auto-generated. Do not edit directly.
import { z } from 'zod';
import { PaymentSchema } from './Payment';
import { PaymentMethodSchema } from './PaymentMethod';

export const PaymentSessionSchema = z.object({
  id: z.string(),
  status: z.string(),
  currency: z.string(),
  external_id: z.string(),
  external_data: z.record(z.string(), z.unknown()),
  customer_external_id: z.string().nullable(),
  expires_at: z.string().nullable(),
  amount: z.string().nullable(),
  payment_method_id: z.string(),
  order_id: z.string().nullable(),
  cart_id: z.string().nullable(),
  payment_method: PaymentMethodSchema,
  payment: PaymentSchema.optional(),
});

export type PaymentSession = z.infer<typeof PaymentSessionSchema>;