# All files / codegen/models UpdateCustomerArgs.ts

82.75% Statements 96/116
20% Branches 1/5
33.33% Functions 1/3
82.75% Lines 96/116

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    1181x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x

    1x
    1x

    1x
    1x
    1x

    1x

    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x

     /* tslint:disable */
    /* eslint-disable */
    /**
     * Octane API
     * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
     *
     * The version of the OpenAPI document: 1.0.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 { exists, mapValues } from '../runtime';
    import {
        ContactInfoInputArgs,
        ContactInfoInputArgsFromJSON,
        ContactInfoInputArgsFromJSONTyped,
        ContactInfoInputArgsToJSON,
    } from './ContactInfoInputArgs';
    import {
        CustomerMeasurementMappingInputArgs,
        CustomerMeasurementMappingInputArgsFromJSON,
        CustomerMeasurementMappingInputArgsFromJSONTyped,
        CustomerMeasurementMappingInputArgsToJSON,
    } from './CustomerMeasurementMappingInputArgs';

    /**
     *
     * @export
     * @interface UpdateCustomerArgs
     */
    export interface UpdateCustomerArgs {
        /**
         *
         * @type {number}
         * @memberof UpdateCustomerArgs
         */
        vendorId?: number;
        /**
         *
         * @type {string}
         * @memberof UpdateCustomerArgs
         */
        name?: string;
        /**
         *
         * @type {Array<string>}
         * @memberof UpdateCustomerArgs
         */
        tags?: Array<string> | null;
        /**
         *
         * @type {ContactInfoInputArgs}
         * @memberof UpdateCustomerArgs
         */
        contactInfo?: ContactInfoInputArgs;
        /**
         *
         * @type {Date}
         * @memberof UpdateCustomerArgs
         */
        createdAt?: Date;
        /**
         *
         * @type {Array<CustomerMeasurementMappingInputArgs>}
         * @memberof UpdateCustomerArgs
         */
        measurementMappings?: Array<CustomerMeasurementMappingInputArgs>;
        /**
         *
         * @type {string}
         * @memberof UpdateCustomerArgs
         */
        displayName?: string;
    }

    export function UpdateCustomerArgsFromJSON(json: any): UpdateCustomerArgs {
        return UpdateCustomerArgsFromJSONTyped(json, false);
    }

    export function UpdateCustomerArgsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCustomerArgs {
        if ((json === undefined) || (json === null)) {
            return json;
        }
        return {

            'vendorId': !exists(json, 'vendor_id') ? undefined : json['vendor_id'],
            'name': !exists(json, 'name') ? undefined : json['name'],
            'tags': !exists(json, 'tags') ? undefined : json['tags'],
            'contactInfo': !exists(json, 'contact_info') ? undefined : ContactInfoInputArgsFromJSON(json['contact_info']),
            'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
            'measurementMappings': !exists(json, 'measurement_mappings') ? undefined : ((json['measurement_mappings'] as Array<any>).map(CustomerMeasurementMappingInputArgsFromJSON)),
            'displayName': !exists(json, 'display_name') ? undefined : json['display_name'],
        };
    }

    export function UpdateCustomerArgsToJSON(value?: UpdateCustomerArgs | null): any {
        if (value === undefined) {
            return undefined;
        }
        if (value === null) {
            return null;
        }
        return {

            'vendor_id': value.vendorId,
            'name': value.name,
            'tags': value.tags,
            'contact_info': ContactInfoInputArgsToJSON(value.contactInfo),
            'created_at': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
            'measurement_mappings': value.measurementMappings === undefined ? undefined : ((value.measurementMappings as Array<any>).map(CustomerMeasurementMappingInputArgsToJSON)),
            'display_name': value.displayName,
        };
    }