UNPKG

@ringer-tel/ivy

Version:
101 lines (89 loc) 3.65 kB
/* tslint:disable */ /* eslint-disable */ /** * Ringer Business API * This API provides comprehensive endpoints for the Ringer Business system. It includes functionality for managing customer accounts, addresses, sites, phone numbers, payments, users, and other business resources. Operations typically require authentication and appropriate permissions. * * The version of the OpenAPI document: 1.0.6 * Contact: support@ringer.tel * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { CallRecordsComponentsSchemasErrorDetailsInner } from './CallRecordsComponentsSchemasErrorDetailsInner'; import { CallRecordsComponentsSchemasErrorDetailsInnerFromJSON, CallRecordsComponentsSchemasErrorDetailsInnerFromJSONTyped, CallRecordsComponentsSchemasErrorDetailsInnerToJSON, CallRecordsComponentsSchemasErrorDetailsInnerToJSONTyped, } from './CallRecordsComponentsSchemasErrorDetailsInner'; /** * Standard error response format. * @export * @interface TransferComponentsSchemasError2 */ export interface TransferComponentsSchemasError2 { /** * * @type {string} * @memberof TransferComponentsSchemasError2 */ status: string; /** * A human-readable description of the error. * @type {string} * @memberof TransferComponentsSchemasError2 */ error: string; /** * A machine-parsable error code. * @type {string} * @memberof TransferComponentsSchemasError2 */ errorCode: string; /** * * @type {Array<CallRecordsComponentsSchemasErrorDetailsInner>} * @memberof TransferComponentsSchemasError2 */ details?: Array<CallRecordsComponentsSchemasErrorDetailsInner> | null; } /** * Check if a given object implements the TransferComponentsSchemasError2 interface. */ export function instanceOfTransferComponentsSchemasError2(value: object): value is TransferComponentsSchemasError2 { if (!('status' in value) || value['status'] === undefined) return false; if (!('error' in value) || value['error'] === undefined) return false; if (!('errorCode' in value) || value['errorCode'] === undefined) return false; return true; } export function TransferComponentsSchemasError2FromJSON(json: any): TransferComponentsSchemasError2 { return TransferComponentsSchemasError2FromJSONTyped(json, false); } export function TransferComponentsSchemasError2FromJSONTyped(json: any, ignoreDiscriminator: boolean): TransferComponentsSchemasError2 { if (json == null) { return json; } return { 'status': json['status'], 'error': json['error'], 'errorCode': json['error_code'], 'details': json['details'] == null ? undefined : ((json['details'] as Array<any>).map(CallRecordsComponentsSchemasErrorDetailsInnerFromJSON)), }; } export function TransferComponentsSchemasError2ToJSON(json: any): TransferComponentsSchemasError2 { return TransferComponentsSchemasError2ToJSONTyped(json, false); } export function TransferComponentsSchemasError2ToJSONTyped(value?: TransferComponentsSchemasError2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'status': value['status'], 'error': value['error'], 'error_code': value['errorCode'], 'details': value['details'] == null ? undefined : ((value['details'] as Array<any>).map(CallRecordsComponentsSchemasErrorDetailsInnerToJSON)), }; }