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

import { lazy, object, Schema } from '../schema';
import { Consent, consentSchema } from './consent';

export interface AccountAccessConsentModel {
  /** Contains the requested consent */
  consent: Consent;
}

export const accountAccessConsentModelSchema: Schema<AccountAccessConsentModel> = object(
  { consent: ['Consent', lazy(() => consentSchema)] }
);
