/**
 * Shell Card Management APIsLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */

import { lazy, object, optional, Schema, string } from '../schema';
import { Detail, detailSchema } from './detail';

/** Error object */
export interface DefaultErrorFault {
  /** Error Description */
  faultstring?: string;
  detail?: Detail;
}

export const defaultErrorFaultSchema: Schema<DefaultErrorFault> = object({
  faultstring: ['faultstring', optional(string())],
  detail: ['detail', optional(lazy(() => detailSchema))],
});
