@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
146 lines (135 loc) • 4.82 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 ScheduleUpdateRequestDataAttributes
*/
export interface ScheduleUpdateRequestDataAttributes {
/**
*
* @type {string}
* @memberof ScheduleUpdateRequestDataAttributes
*/
name?: string | null;
/**
*
* @type {string}
* @memberof ScheduleUpdateRequestDataAttributes
*/
timeZone?: string | null;
/**
*
* @type {string}
* @memberof ScheduleUpdateRequestDataAttributes
*/
startHour?: string | null;
/**
*
* @type {string}
* @memberof ScheduleUpdateRequestDataAttributes
*/
startMinute?: string | null;
/**
*
* @type {string}
* @memberof ScheduleUpdateRequestDataAttributes
*/
endHour?: string | null;
/**
*
* @type {string}
* @memberof ScheduleUpdateRequestDataAttributes
*/
endMinute?: string | null;
/**
*
* @type {string}
* @memberof ScheduleUpdateRequestDataAttributes
*/
startWeekday?: string | null;
/**
*
* @type {string}
* @memberof ScheduleUpdateRequestDataAttributes
*/
endWeekday?: string | null;
/**
*
* @type {string}
* @memberof ScheduleUpdateRequestDataAttributes
*/
exceptions?: string | null;
/**
*
* @type {string}
* @memberof ScheduleUpdateRequestDataAttributes
*/
positiveDestinationCode?: string | null;
/**
*
* @type {string}
* @memberof ScheduleUpdateRequestDataAttributes
*/
negativeDestinationCode?: string | null;
}
/**
* Check if a given object implements the ScheduleUpdateRequestDataAttributes interface.
*/
export function instanceOfScheduleUpdateRequestDataAttributes(value: object): value is ScheduleUpdateRequestDataAttributes {
return true;
}
export function ScheduleUpdateRequestDataAttributesFromJSON(json: any): ScheduleUpdateRequestDataAttributes {
return ScheduleUpdateRequestDataAttributesFromJSONTyped(json, false);
}
export function ScheduleUpdateRequestDataAttributesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleUpdateRequestDataAttributes {
if (json == null) {
return json;
}
return {
'name': json['name'] == null ? undefined : json['name'],
'timeZone': json['time_zone'] == null ? undefined : json['time_zone'],
'startHour': json['start_hour'] == null ? undefined : json['start_hour'],
'startMinute': json['start_minute'] == null ? undefined : json['start_minute'],
'endHour': json['end_hour'] == null ? undefined : json['end_hour'],
'endMinute': json['end_minute'] == null ? undefined : json['end_minute'],
'startWeekday': json['start_weekday'] == null ? undefined : json['start_weekday'],
'endWeekday': json['end_weekday'] == null ? undefined : json['end_weekday'],
'exceptions': json['exceptions'] == null ? undefined : json['exceptions'],
'positiveDestinationCode': json['positive_destination_code'] == null ? undefined : json['positive_destination_code'],
'negativeDestinationCode': json['negative_destination_code'] == null ? undefined : json['negative_destination_code'],
};
}
export function ScheduleUpdateRequestDataAttributesToJSON(json: any): ScheduleUpdateRequestDataAttributes {
return ScheduleUpdateRequestDataAttributesToJSONTyped(json, false);
}
export function ScheduleUpdateRequestDataAttributesToJSONTyped(value?: ScheduleUpdateRequestDataAttributes | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'time_zone': value['timeZone'],
'start_hour': value['startHour'],
'start_minute': value['startMinute'],
'end_hour': value['endHour'],
'end_minute': value['endMinute'],
'start_weekday': value['startWeekday'],
'end_weekday': value['endWeekday'],
'exceptions': value['exceptions'],
'positive_destination_code': value['positiveDestinationCode'],
'negative_destination_code': value['negativeDestinationCode'],
};
}