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
27 lines (23 loc) • 819 B
text/typescript
/**
* Account information PNZ-API-CentreLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { lazy, object, Schema, string } from '../schema';
import {
CreditorReference,
creditorReferenceSchema,
} from './creditorReference';
import { DebtorReference, debtorReferenceSchema } from './debtorReference';
export interface Reference {
creditorName: string;
debtorName: string;
creditorReference: CreditorReference;
debtorReference: DebtorReference;
}
export const referenceSchema: Schema<Reference> = object({
creditorName: ['CreditorName', string()],
debtorName: ['DebtorName', string()],
creditorReference: ['CreditorReference', lazy(() => creditorReferenceSchema)],
debtorReference: ['DebtorReference', lazy(() => debtorReferenceSchema)],
});