UNPKG

@ringer-tel/ivy

Version:
111 lines (96 loc) 3.61 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'; /** * * @export * @interface CallBlockUpdateRequestDataAttributes */ export interface CallBlockUpdateRequestDataAttributes { /** * * @type {string} * @memberof CallBlockUpdateRequestDataAttributes */ name?: string | null; /** * * @type {string} * @memberof CallBlockUpdateRequestDataAttributes */ phoneNumber?: string | null; /** * * @type {string} * @memberof CallBlockUpdateRequestDataAttributes */ direction?: CallBlockUpdateRequestDataAttributesDirectionEnum | null; /** * * @type {string} * @memberof CallBlockUpdateRequestDataAttributes */ status?: CallBlockUpdateRequestDataAttributesStatusEnum | null; } /** * @export */ export const CallBlockUpdateRequestDataAttributesDirectionEnum = { Inbound: 'inbound', Outbound: 'outbound', Both: 'both' } as const; export type CallBlockUpdateRequestDataAttributesDirectionEnum = typeof CallBlockUpdateRequestDataAttributesDirectionEnum[keyof typeof CallBlockUpdateRequestDataAttributesDirectionEnum]; /** * @export */ export const CallBlockUpdateRequestDataAttributesStatusEnum = { Active: 'active', Inactive: 'inactive' } as const; export type CallBlockUpdateRequestDataAttributesStatusEnum = typeof CallBlockUpdateRequestDataAttributesStatusEnum[keyof typeof CallBlockUpdateRequestDataAttributesStatusEnum]; /** * Check if a given object implements the CallBlockUpdateRequestDataAttributes interface. */ export function instanceOfCallBlockUpdateRequestDataAttributes(value: object): value is CallBlockUpdateRequestDataAttributes { return true; } export function CallBlockUpdateRequestDataAttributesFromJSON(json: any): CallBlockUpdateRequestDataAttributes { return CallBlockUpdateRequestDataAttributesFromJSONTyped(json, false); } export function CallBlockUpdateRequestDataAttributesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallBlockUpdateRequestDataAttributes { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'phoneNumber': json['phone_number'] == null ? undefined : json['phone_number'], 'direction': json['direction'] == null ? undefined : json['direction'], 'status': json['status'] == null ? undefined : json['status'], }; } export function CallBlockUpdateRequestDataAttributesToJSON(json: any): CallBlockUpdateRequestDataAttributes { return CallBlockUpdateRequestDataAttributesToJSONTyped(json, false); } export function CallBlockUpdateRequestDataAttributesToJSONTyped(value?: CallBlockUpdateRequestDataAttributes | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'phone_number': value['phoneNumber'], 'direction': value['direction'], 'status': value['status'], }; }