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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
// This file is auto-generated. Do not edit directly.
import { z } from 'zod';
import { CustomFieldSchema } from './CustomField';
export const GiftCardSchema = z.object({
id: z.string(),
code: z.string(),
status: z.string(),
currency: z.string(),
amount: z.string().nullable(),
amount_used: z.string().nullable(),
amount_authorized: z.string().nullable(),
amount_remaining: z.string().nullable(),
display_amount: z.string().nullable(),
display_amount_used: z.string().nullable(),
display_amount_remaining: z.string().nullable(),
expires_at: z.string().nullable(),
redeemed_at: z.string().nullable(),
expired: z.boolean(),
active: z.boolean(),
custom_fields: z.array(CustomFieldSchema).optional(),
});
export type GiftCard = z.infer<typeof GiftCardSchema>;