UNPKG

@ringer-tel/ivy

Version:
83 lines (71 loc) 2.74 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 { ComponentsSchemasLink } from './ComponentsSchemasLink'; import { ComponentsSchemasLinkFromJSON, ComponentsSchemasLinkFromJSONTyped, ComponentsSchemasLinkToJSON, ComponentsSchemasLinkToJSONTyped, } from './ComponentsSchemasLink'; /** * Response message indicating the result of the account confirmation attempt. * @export * @interface ConfirmationResponse */ export interface ConfirmationResponse { /** * A success message indicating the account has been confirmed. * @type {string} * @memberof ConfirmationResponse */ message: string; /** * HATEOAS links for next actions, like logging in. * @type {Array<ComponentsSchemasLink>} * @memberof ConfirmationResponse */ links?: Array<ComponentsSchemasLink> | null; } /** * Check if a given object implements the ConfirmationResponse interface. */ export function instanceOfConfirmationResponse(value: object): value is ConfirmationResponse { if (!('message' in value) || value['message'] === undefined) return false; return true; } export function ConfirmationResponseFromJSON(json: any): ConfirmationResponse { return ConfirmationResponseFromJSONTyped(json, false); } export function ConfirmationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmationResponse { if (json == null) { return json; } return { 'message': json['message'], 'links': json['links'] == null ? undefined : ((json['links'] as Array<any>).map(ComponentsSchemasLinkFromJSON)), }; } export function ConfirmationResponseToJSON(json: any): ConfirmationResponse { return ConfirmationResponseToJSONTyped(json, false); } export function ConfirmationResponseToJSONTyped(value?: ConfirmationResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'message': value['message'], 'links': value['links'] == null ? undefined : ((value['links'] as Array<any>).map(ComponentsSchemasLinkToJSON)), }; }