UNPKG

@ringer-tel/ivy

Version:
85 lines (74 loc) 2.67 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.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 format. * @export * @interface CreditCardsComponentsSchemasError */ export interface CreditCardsComponentsSchemasError { /** * * @type {string} * @memberof CreditCardsComponentsSchemasError */ status: string; /** * * @type {string} * @memberof CreditCardsComponentsSchemasError */ error: string; /** * * @type {string} * @memberof CreditCardsComponentsSchemasError */ errorCode: string; } /** * Check if a given object implements the CreditCardsComponentsSchemasError interface. */ export function instanceOfCreditCardsComponentsSchemasError(value: object): value is CreditCardsComponentsSchemasError { 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 CreditCardsComponentsSchemasErrorFromJSON(json: any): CreditCardsComponentsSchemasError { return CreditCardsComponentsSchemasErrorFromJSONTyped(json, false); } export function CreditCardsComponentsSchemasErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreditCardsComponentsSchemasError { if (json == null) { return json; } return { 'status': json['status'], 'error': json['error'], 'errorCode': json['error_code'], }; } export function CreditCardsComponentsSchemasErrorToJSON(json: any): CreditCardsComponentsSchemasError { return CreditCardsComponentsSchemasErrorToJSONTyped(json, false); } export function CreditCardsComponentsSchemasErrorToJSONTyped(value?: CreditCardsComponentsSchemasError | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'status': value['status'], 'error': value['error'], 'error_code': value['errorCode'], }; }