/* tslint:disable */
/* eslint-disable */
/**
 * OmsorgCore.Api
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0
 * 
 *
 * 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 UpdateFacilityRequest
 */
export interface UpdateFacilityRequest {
    /**
     * 
     * @type {string}
     * @memberof UpdateFacilityRequest
     */
    name?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateFacilityRequest
     */
    crmStatus?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateFacilityRequest
     */
    facilityType?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateFacilityRequest
     */
    website?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateFacilityRequest
     */
    street?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateFacilityRequest
     */
    postalCode?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateFacilityRequest
     */
    city?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateFacilityRequest
     */
    country?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateFacilityRequest
     */
    billingStreet?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateFacilityRequest
     */
    billingPostalCode?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateFacilityRequest
     */
    billingCity?: string | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateFacilityRequest
     */
    billingCountry?: string | null;
    /**
     * 
     * @type {number}
     * @memberof UpdateFacilityRequest
     */
    followUpDays?: number | null;
    /**
     * 
     * @type {number}
     * @memberof UpdateFacilityRequest
     */
    billingRate?: number | null;
    /**
     * 
     * @type {number}
     * @memberof UpdateFacilityRequest
     */
    nightSurchargePercent?: number | null;
    /**
     * 
     * @type {number}
     * @memberof UpdateFacilityRequest
     */
    saturdaySurchargePercent?: number | null;
    /**
     * 
     * @type {number}
     * @memberof UpdateFacilityRequest
     */
    sundaySurchargePercent?: number | null;
    /**
     * 
     * @type {number}
     * @memberof UpdateFacilityRequest
     */
    holidaySurchargePercent?: number | null;
    /**
     * 
     * @type {number}
     * @memberof UpdateFacilityRequest
     */
    travelCostRate?: number | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateFacilityRequest
     */
    travelCostMode?: string | null;
    /**
     * 
     * @type {number}
     * @memberof UpdateFacilityRequest
     */
    travelCostPerKm?: number | null;
    /**
     * 
     * @type {number}
     * @memberof UpdateFacilityRequest
     */
    mealAllowanceRate?: number | null;
    /**
     * 
     * @type {number}
     * @memberof UpdateFacilityRequest
     */
    minimumHours?: number | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateFacilityRequest
     */
    billingInterval?: string | null;
    /**
     * 
     * @type {number}
     * @memberof UpdateFacilityRequest
     */
    paymentTermDays?: number | null;
    /**
     * 
     * @type {string}
     * @memberof UpdateFacilityRequest
     */
    individualAgreements?: string | null;
}

/**
 * Check if a given object implements the UpdateFacilityRequest interface.
 */
export function instanceOfUpdateFacilityRequest(value: object): value is UpdateFacilityRequest {
    return true;
}

export function UpdateFacilityRequestFromJSON(json: any): UpdateFacilityRequest {
    return UpdateFacilityRequestFromJSONTyped(json, false);
}

export function UpdateFacilityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFacilityRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'name': json['name'] == null ? undefined : json['name'],
        'crmStatus': json['crmStatus'] == null ? undefined : json['crmStatus'],
        'facilityType': json['facilityType'] == null ? undefined : json['facilityType'],
        'website': json['website'] == null ? undefined : json['website'],
        'street': json['street'] == null ? undefined : json['street'],
        'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
        'city': json['city'] == null ? undefined : json['city'],
        'country': json['country'] == null ? undefined : json['country'],
        'billingStreet': json['billingStreet'] == null ? undefined : json['billingStreet'],
        'billingPostalCode': json['billingPostalCode'] == null ? undefined : json['billingPostalCode'],
        'billingCity': json['billingCity'] == null ? undefined : json['billingCity'],
        'billingCountry': json['billingCountry'] == null ? undefined : json['billingCountry'],
        'followUpDays': json['followUpDays'] == null ? undefined : json['followUpDays'],
        'billingRate': json['billingRate'] == null ? undefined : json['billingRate'],
        'nightSurchargePercent': json['nightSurchargePercent'] == null ? undefined : json['nightSurchargePercent'],
        'saturdaySurchargePercent': json['saturdaySurchargePercent'] == null ? undefined : json['saturdaySurchargePercent'],
        'sundaySurchargePercent': json['sundaySurchargePercent'] == null ? undefined : json['sundaySurchargePercent'],
        'holidaySurchargePercent': json['holidaySurchargePercent'] == null ? undefined : json['holidaySurchargePercent'],
        'travelCostRate': json['travelCostRate'] == null ? undefined : json['travelCostRate'],
        'travelCostMode': json['travelCostMode'] == null ? undefined : json['travelCostMode'],
        'travelCostPerKm': json['travelCostPerKm'] == null ? undefined : json['travelCostPerKm'],
        'mealAllowanceRate': json['mealAllowanceRate'] == null ? undefined : json['mealAllowanceRate'],
        'minimumHours': json['minimumHours'] == null ? undefined : json['minimumHours'],
        'billingInterval': json['billingInterval'] == null ? undefined : json['billingInterval'],
        'paymentTermDays': json['paymentTermDays'] == null ? undefined : json['paymentTermDays'],
        'individualAgreements': json['individualAgreements'] == null ? undefined : json['individualAgreements'],
    };
}

export function UpdateFacilityRequestToJSON(json: any): UpdateFacilityRequest {
    return UpdateFacilityRequestToJSONTyped(json, false);
}

export function UpdateFacilityRequestToJSONTyped(value?: UpdateFacilityRequest | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'name': value['name'],
        'crmStatus': value['crmStatus'],
        'facilityType': value['facilityType'],
        'website': value['website'],
        'street': value['street'],
        'postalCode': value['postalCode'],
        'city': value['city'],
        'country': value['country'],
        'billingStreet': value['billingStreet'],
        'billingPostalCode': value['billingPostalCode'],
        'billingCity': value['billingCity'],
        'billingCountry': value['billingCountry'],
        'followUpDays': value['followUpDays'],
        'billingRate': value['billingRate'],
        'nightSurchargePercent': value['nightSurchargePercent'],
        'saturdaySurchargePercent': value['saturdaySurchargePercent'],
        'sundaySurchargePercent': value['sundaySurchargePercent'],
        'holidaySurchargePercent': value['holidaySurchargePercent'],
        'travelCostRate': value['travelCostRate'],
        'travelCostMode': value['travelCostMode'],
        'travelCostPerKm': value['travelCostPerKm'],
        'mealAllowanceRate': value['mealAllowanceRate'],
        'minimumHours': value['minimumHours'],
        'billingInterval': value['billingInterval'],
        'paymentTermDays': value['paymentTermDays'],
        'individualAgreements': value['individualAgreements'],
    };
}

