UNPKG

pnz-apicentre-sandbox-sdk

Version:

The sandbox, powered by Middleware New Zealand, is a dedicated environment that mimics an API Provider, as defined in the [Payments NZ API Centre standards](https://paymentsnz.atlassian.net/wiki/spaces/PaymentsNZAPIStandards/overview). This SDK is generat

36 lines (32 loc) 1.02 kB
/** * Account information PNZ-API-CentreLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { lazy, number, object, optional, Schema, string } from '../schema'; import { Amount, amountSchema } from './amount'; import { Fee, feeSchema } from './fee'; export interface Offer4 { offerId: string; accountId: string; description: string; offerType: string; amount?: Amount; startDateTime: string; endDateTime: string; term?: string; fee?: Fee; value?: number; } export const offer4Schema: Schema<Offer4> = object({ offerId: ['OfferId', string()], accountId: ['AccountId', string()], description: ['Description', string()], offerType: ['OfferType', string()], amount: ['Amount', optional(lazy(() => amountSchema))], startDateTime: ['StartDateTime', string()], endDateTime: ['EndDateTime', string()], term: ['Term', optional(string())], fee: ['Fee', optional(lazy(() => feeSchema))], value: ['Value', optional(number())], });