@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
85 lines (74 loc) • 2.71 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.5
* 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';
/**
* Standard error response structure.
* @export
* @interface OauthComponentsSchemasError
*/
export interface OauthComponentsSchemasError {
/**
* A general status indicator for the error.
* @type {string}
* @memberof OauthComponentsSchemasError
*/
status: string;
/**
* A human-readable description of the error.
* @type {string}
* @memberof OauthComponentsSchemasError
*/
error: string;
/**
* A machine-parsable error code specific to this error condition.
* @type {string}
* @memberof OauthComponentsSchemasError
*/
errorCode: string;
}
/**
* Check if a given object implements the OauthComponentsSchemasError interface.
*/
export function instanceOfOauthComponentsSchemasError(value: object): value is OauthComponentsSchemasError {
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 OauthComponentsSchemasErrorFromJSON(json: any): OauthComponentsSchemasError {
return OauthComponentsSchemasErrorFromJSONTyped(json, false);
}
export function OauthComponentsSchemasErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): OauthComponentsSchemasError {
if (json == null) {
return json;
}
return {
'status': json['status'],
'error': json['error'],
'errorCode': json['error_code'],
};
}
export function OauthComponentsSchemasErrorToJSON(json: any): OauthComponentsSchemasError {
return OauthComponentsSchemasErrorToJSONTyped(json, false);
}
export function OauthComponentsSchemasErrorToJSONTyped(value?: OauthComponentsSchemasError | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'status': value['status'],
'error': value['error'],
'error_code': value['errorCode'],
};
}