UNPKG

@ringer-tel/ivy

Version:
94 lines (79 loc) 2.83 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.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'; import type { ScheduleAttributes } from './ScheduleAttributes'; import { ScheduleAttributesFromJSON, ScheduleAttributesFromJSONTyped, ScheduleAttributesToJSON, ScheduleAttributesToJSONTyped, } from './ScheduleAttributes'; /** * * @export * @interface ScheduleCreateRequestData */ export interface ScheduleCreateRequestData { /** * * @type {string} * @memberof ScheduleCreateRequestData */ type: ScheduleCreateRequestDataTypeEnum; /** * * @type {ScheduleAttributes} * @memberof ScheduleCreateRequestData */ attributes: ScheduleAttributes; } /** * @export */ export const ScheduleCreateRequestDataTypeEnum = { Schedule: 'schedule' } as const; export type ScheduleCreateRequestDataTypeEnum = typeof ScheduleCreateRequestDataTypeEnum[keyof typeof ScheduleCreateRequestDataTypeEnum]; /** * Check if a given object implements the ScheduleCreateRequestData interface. */ export function instanceOfScheduleCreateRequestData(value: object): value is ScheduleCreateRequestData { if (!('type' in value) || value['type'] === undefined) return false; if (!('attributes' in value) || value['attributes'] === undefined) return false; return true; } export function ScheduleCreateRequestDataFromJSON(json: any): ScheduleCreateRequestData { return ScheduleCreateRequestDataFromJSONTyped(json, false); } export function ScheduleCreateRequestDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleCreateRequestData { if (json == null) { return json; } return { 'type': json['type'], 'attributes': ScheduleAttributesFromJSON(json['attributes']), }; } export function ScheduleCreateRequestDataToJSON(json: any): ScheduleCreateRequestData { return ScheduleCreateRequestDataToJSONTyped(json, false); } export function ScheduleCreateRequestDataToJSONTyped(value?: ScheduleCreateRequestData | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'type': value['type'], 'attributes': ScheduleAttributesToJSON(value['attributes']), }; }