UNPKG

@ringer-tel/ivy

Version:
118 lines (103 loc) 3.63 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'; import type { ScheduleResponseDataAttributes } from './ScheduleResponseDataAttributes'; import { ScheduleResponseDataAttributesFromJSON, ScheduleResponseDataAttributesFromJSONTyped, ScheduleResponseDataAttributesToJSON, ScheduleResponseDataAttributesToJSONTyped, } from './ScheduleResponseDataAttributes'; import type { Link } from './Link'; import { LinkFromJSON, LinkFromJSONTyped, LinkToJSON, LinkToJSONTyped, } from './Link'; /** * * @export * @interface ScheduleResponseData */ export interface ScheduleResponseData { /** * * @type {string} * @memberof ScheduleResponseData */ id: string; /** * * @type {string} * @memberof ScheduleResponseData */ type: ScheduleResponseDataTypeEnum; /** * * @type {ScheduleResponseDataAttributes} * @memberof ScheduleResponseData */ attributes: ScheduleResponseDataAttributes; /** * An object containing various HATEOAS links, where each key is the link relation type. * @type {{ [key: string]: Link; }} * @memberof ScheduleResponseData */ links?: { [key: string]: Link; }; } /** * @export */ export const ScheduleResponseDataTypeEnum = { Schedule: 'schedule' } as const; export type ScheduleResponseDataTypeEnum = typeof ScheduleResponseDataTypeEnum[keyof typeof ScheduleResponseDataTypeEnum]; /** * Check if a given object implements the ScheduleResponseData interface. */ export function instanceOfScheduleResponseData(value: object): value is ScheduleResponseData { if (!('id' in value) || value['id'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('attributes' in value) || value['attributes'] === undefined) return false; return true; } export function ScheduleResponseDataFromJSON(json: any): ScheduleResponseData { return ScheduleResponseDataFromJSONTyped(json, false); } export function ScheduleResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleResponseData { if (json == null) { return json; } return { 'id': json['id'], 'type': json['type'], 'attributes': ScheduleResponseDataAttributesFromJSON(json['attributes']), 'links': json['links'] == null ? undefined : (mapValues(json['links'], LinkFromJSON)), }; } export function ScheduleResponseDataToJSON(json: any): ScheduleResponseData { return ScheduleResponseDataToJSONTyped(json, false); } export function ScheduleResponseDataToJSONTyped(value?: ScheduleResponseData | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'type': value['type'], 'attributes': ScheduleResponseDataAttributesToJSON(value['attributes']), 'links': value['links'] == null ? undefined : (mapValues(value['links'], LinkToJSON)), }; }