/** * PayPal Server SDKLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { lazy, object, optional, Schema, string } from '../schema.js'; import { SimplePostalAddressCoarseGrained, simplePostalAddressCoarseGrainedSchema, } from './simplePostalAddressCoarseGrained.js'; /** The shipping information. */ export interface ShippingInformation { /** The recipient's name. */ name?: string; /** The shipping method that is associated with this order. */ method?: string; /** A simple postal address with coarse-grained fields. Do not use for an international address. Use for backward compatibility only. Does not contain phone. */ address?: SimplePostalAddressCoarseGrained; /** A simple postal address with coarse-grained fields. Do not use for an international address. Use for backward compatibility only. Does not contain phone. */ secondaryShippingAddress?: SimplePostalAddressCoarseGrained; } export const shippingInformationSchema: Schema = lazy(() => object({ name: ['name', optional(string())], method: ['method', optional(string())], address: ['address', optional(simplePostalAddressCoarseGrainedSchema)], secondaryShippingAddress: [ 'secondary_shipping_address', optional(simplePostalAddressCoarseGrainedSchema), ], }) );