@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
101 lines (89 loc) • 3.63 kB
text/typescript
/* 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 { CallBlockComponentsSchemasErrorDetailsInner } from './CallBlockComponentsSchemasErrorDetailsInner';
import {
CallBlockComponentsSchemasErrorDetailsInnerFromJSON,
CallBlockComponentsSchemasErrorDetailsInnerFromJSONTyped,
CallBlockComponentsSchemasErrorDetailsInnerToJSON,
CallBlockComponentsSchemasErrorDetailsInnerToJSONTyped,
} from './CallBlockComponentsSchemasErrorDetailsInner';
/**
* Standard error response format.
* @export
* @interface CallBlockComponentsSchemasError
*/
export interface CallBlockComponentsSchemasError {
/**
*
* @type {string}
* @memberof CallBlockComponentsSchemasError
*/
status: string;
/**
* A human-readable description of the error.
* @type {string}
* @memberof CallBlockComponentsSchemasError
*/
error: string;
/**
* A machine-parsable error code.
* @type {string}
* @memberof CallBlockComponentsSchemasError
*/
errorCode: string;
/**
*
* @type {Array<CallBlockComponentsSchemasErrorDetailsInner>}
* @memberof CallBlockComponentsSchemasError
*/
details?: Array<CallBlockComponentsSchemasErrorDetailsInner> | null;
}
/**
* Check if a given object implements the CallBlockComponentsSchemasError interface.
*/
export function instanceOfCallBlockComponentsSchemasError(value: object): value is CallBlockComponentsSchemasError {
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 CallBlockComponentsSchemasErrorFromJSON(json: any): CallBlockComponentsSchemasError {
return CallBlockComponentsSchemasErrorFromJSONTyped(json, false);
}
export function CallBlockComponentsSchemasErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallBlockComponentsSchemasError {
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(CallBlockComponentsSchemasErrorDetailsInnerFromJSON)),
};
}
export function CallBlockComponentsSchemasErrorToJSON(json: any): CallBlockComponentsSchemasError {
return CallBlockComponentsSchemasErrorToJSONTyped(json, false);
}
export function CallBlockComponentsSchemasErrorToJSONTyped(value?: CallBlockComponentsSchemasError | 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(CallBlockComponentsSchemasErrorDetailsInnerToJSON)),
};
}