/**
 * 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 {
  GetOffersResponseData,
  getOffersResponseDataSchema,
} from './getOffersResponseData';
import { Links, linksSchema } from './links';
import { Meta, metaSchema } from './meta';

export interface GetAccountOffersResponse {
  data: GetOffersResponseData;
  /** Links relevant to the payload */
  links: Links;
  meta: Meta;
}

export const getAccountOffersResponseSchema: Schema<GetAccountOffersResponse> = object(
  {
    data: ['Data', lazy(() => getOffersResponseDataSchema)],
    links: ['Links', lazy(() => linksSchema)],
    meta: ['Meta', lazy(() => metaSchema)],
  }
);
