/**
 * PayPal Server SDKLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */

import { object, optional, Schema, string } from '../schema';

/** The error details. Required for client-side `4XX` errors. */
export interface OrderUpdateCallbackErrorResponseDetails {
  /** The field that caused the error. If this field is in the body, set this value to the field's JSON pointer value. Required for client-side errors. */
  field?: string;
  /** The value of the field that caused the error. */
  value?: string;
  /** The unique, fine-grained application-level error code. */
  issue: string;
}

export const orderUpdateCallbackErrorResponseDetailsSchema: Schema<OrderUpdateCallbackErrorResponseDetails> = object(
  {
    field: ['field', optional(string())],
    value: ['value', optional(string())],
    issue: ['issue', string()],
  }
);
