/**
 * Account and Transaction API SpecificationLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */

import { array, lazy, object, optional, Schema } from '../schema';
import {
  ScheduledPaymentModel,
  scheduledPaymentModelSchema,
} from './scheduledPaymentModel';

export interface GetScheduledPaymentsResponseData {
  scheduledPayment?: ScheduledPaymentModel[];
}

export const getScheduledPaymentsResponseDataSchema: Schema<GetScheduledPaymentsResponseData> = object(
  {
    scheduledPayment: [
      'ScheduledPayment',
      optional(array(lazy(() => scheduledPaymentModelSchema))),
    ],
  }
);
