/** * Paze Checkout APILib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { lazy, object, optional, Schema, string } from '../schema.js'; import { Consumer, consumerSchema } from './consumer.js'; import { Links, linksSchema } from './links.js'; import { MaskedCard, maskedCardSchema } from './maskedCard.js'; import { ShippingAddress, shippingAddressSchema } from './shippingAddress.js'; export interface ReviewSessionResponseData { consumer: Consumer; maskedCard: MaskedCard; shippingAddress?: ShippingAddress; code: string; links?: Links; } export const reviewSessionResponseDataSchema: Schema = lazy( () => object({ consumer: ['consumer', consumerSchema], maskedCard: ['maskedCard', maskedCardSchema], shippingAddress: ['shippingAddress', optional(shippingAddressSchema)], code: ['code', string()], links: ['links', optional(linksSchema)], }) );