/* tslint:disable */ /* eslint-disable */ /** * Equisoft /plan API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: latest * * * 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 PlansPlan */ export interface PlansPlan { /** * * @type {number} * @memberof PlansPlan */ id: number; /** * * @type {PlansPlanTypeEnum} * @memberof PlansPlan */ type: PlansPlanTypeEnum; /** * * @type {string} * @memberof PlansPlan */ modifiedDate: string; /** * * @type {string} * @memberof PlansPlan */ clientDisplayName: string; /** * * @type {string} * @memberof PlansPlan */ spouseDisplayName?: string | null; /** * * @type {PlansPlanStatusEnum} * @memberof PlansPlan */ status: PlansPlanStatusEnum; /** * * @type {string} * @memberof PlansPlan */ statusDate: string | null; /** * * @type {string} * @memberof PlansPlan */ url: string; } /** * @export */ export const PlansPlanTypeEnum = { INDIVIDUAL: 'INDIVIDUAL', SPOUSAL: 'SPOUSAL', unknown_default_open_api: '11184809' } as const; export type PlansPlanTypeEnum = typeof PlansPlanTypeEnum[keyof typeof PlansPlanTypeEnum]; /** * @export */ export const PlansPlanStatusEnum = { PARTIAL: 'PARTIAL', COMPLETED: 'COMPLETED', EXPIRED: 'EXPIRED', unknown_default_open_api: '11184809' } as const; export type PlansPlanStatusEnum = typeof PlansPlanStatusEnum[keyof typeof PlansPlanStatusEnum]; /** * Check if a given object implements the PlansPlan interface. */ export function instanceOfPlansPlan(value: object): value is PlansPlan { if (!('id' in value) || value['id'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('modifiedDate' in value) || value['modifiedDate'] === undefined) return false; if (!('clientDisplayName' in value) || value['clientDisplayName'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; if (!('statusDate' in value) || value['statusDate'] === undefined) return false; if (!('url' in value) || value['url'] === undefined) return false; return true; } export function PlansPlanFromJSON(json: any): PlansPlan { return PlansPlanFromJSONTyped(json, false); } export function PlansPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlansPlan { if (json == null) { return json; } return { 'id': json['id'], 'type': json['type'], 'modifiedDate': json['modifiedDate'], 'clientDisplayName': json['clientDisplayName'], 'spouseDisplayName': json['spouseDisplayName'] == null ? undefined : json['spouseDisplayName'], 'status': json['status'], 'statusDate': json['statusDate'], 'url': json['url'], }; } export function PlansPlanToJSON(json: any): PlansPlan { return PlansPlanToJSONTyped(json, false); } export function PlansPlanToJSONTyped(value?: PlansPlan | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'type': value['type'], 'modifiedDate': value['modifiedDate'], 'clientDisplayName': value['clientDisplayName'], 'spouseDisplayName': value['spouseDisplayName'], 'status': value['status'], 'statusDate': value['statusDate'], 'url': value['url'], }; }