@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
98 lines (84 loc) • 2.78 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 IndexComponentsSchemasLink
*/
export interface IndexComponentsSchemasLink {
/**
*
* @type {string}
* @memberof IndexComponentsSchemasLink
*/
href: string;
/**
*
* @type {string}
* @memberof IndexComponentsSchemasLink
*/
rel: string;
/**
*
* @type {string}
* @memberof IndexComponentsSchemasLink
*/
method?: IndexComponentsSchemasLinkMethodEnum;
}
/**
* @export
*/
export const IndexComponentsSchemasLinkMethodEnum = {
Get: 'GET',
Post: 'POST',
Put: 'PUT',
Patch: 'PATCH',
Delete: 'DELETE'
} as const;
export type IndexComponentsSchemasLinkMethodEnum = typeof IndexComponentsSchemasLinkMethodEnum[keyof typeof IndexComponentsSchemasLinkMethodEnum];
/**
* Check if a given object implements the IndexComponentsSchemasLink interface.
*/
export function instanceOfIndexComponentsSchemasLink(value: object): value is IndexComponentsSchemasLink {
if (!('href' in value) || value['href'] === undefined) return false;
if (!('rel' in value) || value['rel'] === undefined) return false;
return true;
}
export function IndexComponentsSchemasLinkFromJSON(json: any): IndexComponentsSchemasLink {
return IndexComponentsSchemasLinkFromJSONTyped(json, false);
}
export function IndexComponentsSchemasLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexComponentsSchemasLink {
if (json == null) {
return json;
}
return {
'href': json['href'],
'rel': json['rel'],
'method': json['method'] == null ? undefined : json['method'],
};
}
export function IndexComponentsSchemasLinkToJSON(json: any): IndexComponentsSchemasLink {
return IndexComponentsSchemasLinkToJSONTyped(json, false);
}
export function IndexComponentsSchemasLinkToJSONTyped(value?: IndexComponentsSchemasLink | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'href': value['href'],
'rel': value['rel'],
'method': value['method'],
};
}