/** * PayPal Server SDKLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { array, lazy, object, optional, Schema, string } from '../schema.js'; import { LinkDescription, linkDescriptionSchema } from './linkDescription.js'; import { OrderTrackerItem, orderTrackerItemSchema, } from './orderTrackerItem.js'; import { OrderTrackerStatus, orderTrackerStatusSchema, } from './orderTrackerStatus.js'; /** The tracking response on creation of tracker. */ export interface OrderTrackerResponse { /** The tracker id. */ id?: string; /** The status of the item shipment. */ status?: OrderTrackerStatus; /** An array of details of items in the shipment. */ items?: OrderTrackerItem[]; /** An array of request-related HATEOAS links. */ links?: LinkDescription[]; /** The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional. Note: The regular expression provides guidance but does not reject all invalid dates. */ createTime?: string; /** The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional. Note: The regular expression provides guidance but does not reject all invalid dates. */ updateTime?: string; } export const orderTrackerResponseSchema: Schema = lazy( () => object({ id: ['id', optional(string())], status: ['status', optional(orderTrackerStatusSchema)], items: ['items', optional(array(orderTrackerItemSchema))], links: ['links', optional(array(linkDescriptionSchema))], createTime: ['create_time', optional(string())], updateTime: ['update_time', optional(string())], }) );