pnz-payments-sdk
Version:
PNZ Payments Account and Transaction API
53 lines • 2.03 kB
JavaScript
/**
* Account and Transaction API SpecificationLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { array, lazy, object, optional, string } from '../schema';
import { statementAmountSchema } from './statementAmount';
import { statementBenefitSchema } from './statementBenefit';
import { statementDateTimeSchema, } from './statementDateTime';
import { statementFeeSchema } from './statementFee';
import { statementInterestSchema, } from './statementInterest';
import { statementRateSchema } from './statementRate';
import { statementTypeEnumSchema, } from './statementTypeEnum';
import { statementValueSchema } from './statementValue';
export const statementModelSchema = object({
accountId: ['AccountId', string()],
statementId: ['StatementId', optional(string())],
statementReference: ['StatementReference', optional(string())],
type: ['Type', statementTypeEnumSchema],
startDateTime: ['StartDateTime', string()],
endDateTime: ['EndDateTime', string()],
creationDateTime: ['CreationDateTime', string()],
statementDescription: ['StatementDescription', optional(array(string()))],
statementBenefit: [
'StatementBenefit',
optional(array(lazy(() => statementBenefitSchema))),
],
statementFee: [
'StatementFee',
optional(array(lazy(() => statementFeeSchema))),
],
statementInterest: [
'StatementInterest',
optional(array(lazy(() => statementInterestSchema))),
],
statementDateTime: [
'StatementDateTime',
optional(array(lazy(() => statementDateTimeSchema))),
],
statementRate: [
'StatementRate',
optional(array(lazy(() => statementRateSchema))),
],
statementValue: [
'StatementValue',
optional(array(lazy(() => statementValueSchema))),
],
statementAmount: [
'StatementAmount',
optional(array(lazy(() => statementAmountSchema))),
],
});
//# sourceMappingURL=statementModel.js.map