@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
138 lines (127 loc) • 3.66 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';
/**
*
* @export
* @interface PlanCore
*/
export interface PlanCore {
/**
*
* @type {number}
* @memberof PlanCore
*/
id: number;
/**
*
* @type {string}
* @memberof PlanCore
*/
name: string;
/**
*
* @type {string}
* @memberof PlanCore
*/
description?: string | null;
/**
*
* @type {string}
* @memberof PlanCore
*/
totalCost: string;
/**
*
* @type {string}
* @memberof PlanCore
*/
currency: string;
/**
*
* @type {boolean}
* @memberof PlanCore
*/
removable: boolean;
/**
*
* @type {boolean}
* @memberof PlanCore
*/
active: boolean;
/**
*
* @type {boolean}
* @memberof PlanCore
*/
approved: boolean;
/**
*
* @type {boolean}
* @memberof PlanCore
*/
finalized: boolean;
}
/**
* Check if a given object implements the PlanCore interface.
*/
export function instanceOfPlanCore(value: object): value is PlanCore {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('totalCost' in value) || value['totalCost'] === undefined) return false;
if (!('currency' in value) || value['currency'] === undefined) return false;
if (!('removable' in value) || value['removable'] === undefined) return false;
if (!('active' in value) || value['active'] === undefined) return false;
if (!('approved' in value) || value['approved'] === undefined) return false;
if (!('finalized' in value) || value['finalized'] === undefined) return false;
return true;
}
export function PlanCoreFromJSON(json: any): PlanCore {
return PlanCoreFromJSONTyped(json, false);
}
export function PlanCoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanCore {
if (json == null) {
return json;
}
return {
'id': json['id'],
'name': json['name'],
'description': json['description'] == null ? undefined : json['description'],
'totalCost': json['total_cost'],
'currency': json['currency'],
'removable': json['removable'],
'active': json['active'],
'approved': json['approved'],
'finalized': json['finalized'],
};
}
export function PlanCoreToJSON(json: any): PlanCore {
return PlanCoreToJSONTyped(json, false);
}
export function PlanCoreToJSONTyped(value?: PlanCore | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'id': value['id'],
'name': value['name'],
'description': value['description'],
'total_cost': value['totalCost'],
'currency': value['currency'],
'removable': value['removable'],
'active': value['active'],
'approved': value['approved'],
'finalized': value['finalized'],
};
}