# All files / codegen/models ContactInfo.ts

83.44% Statements 126/151
12.5% Branches 2/16
66.66% Functions 2/3
83.44% Lines 126/151

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
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    1531x
    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
    1x
    1x
    1x
    1x
    1x
    1x
    4x
    4x
    1x
    1x
    4x

    4x
    4x
    4x
    4x
    4x
    4x
    4x
    4x
    4x
    4x
    4x
    4x
    4x
    4x
    4x
    4x
    4x
    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';
    /**
     *
     * @export
     * @interface ContactInfo
     */
    export interface ContactInfo {
        /**
         *
         * @type {string}
         * @memberof ContactInfo
         */
        addressLine1?: string | null;
        /**
         *
         * @type {string}
         * @memberof ContactInfo
         */
        addressLine2?: string | null;
        /**
         *
         * @type {string}
         * @memberof ContactInfo
         */
        city?: string | null;
        /**
         *
         * @type {string}
         * @memberof ContactInfo
         */
        state?: string | null;
        /**
         *
         * @type {string}
         * @memberof ContactInfo
         */
        country?: string | null;
        /**
         *
         * @type {string}
         * @memberof ContactInfo
         */
        zipcode?: string | null;
        /**
         *
         * @type {string}
         * @memberof ContactInfo
         */
        url?: string | null;
        /**
         *
         * @type {string}
         * @memberof ContactInfo
         */
        logoUrl?: string | null;
        /**
         *
         * @type {string}
         * @memberof ContactInfo
         */
        email?: string | null;
        /**
         *
         * @type {string}
         * @memberof ContactInfo
         */
        secondaryEmails?: string | null;
        /**
         *
         * @type {string}
         * @memberof ContactInfo
         */
        phone?: string | null;
        /**
         *
         * @type {string}
         * @memberof ContactInfo
         */
        legalName?: string | null;
        /**
         *
         * @type {string}
         * @memberof ContactInfo
         */
        vatId?: string | null;
    }

    export function ContactInfoFromJSON(json: any): ContactInfo {
        return ContactInfoFromJSONTyped(json, false);
    }

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

            'addressLine1': !exists(json, 'address_line_1') ? undefined : json['address_line_1'],
            'addressLine2': !exists(json, 'address_line_2') ? undefined : json['address_line_2'],
            'city': !exists(json, 'city') ? undefined : json['city'],
            'state': !exists(json, 'state') ? undefined : json['state'],
            'country': !exists(json, 'country') ? undefined : json['country'],
            'zipcode': !exists(json, 'zipcode') ? undefined : json['zipcode'],
            'url': !exists(json, 'url') ? undefined : json['url'],
            'logoUrl': !exists(json, 'logo_url') ? undefined : json['logo_url'],
            'email': !exists(json, 'email') ? undefined : json['email'],
            'secondaryEmails': !exists(json, 'secondary_emails') ? undefined : json['secondary_emails'],
            'phone': !exists(json, 'phone') ? undefined : json['phone'],
            'legalName': !exists(json, 'legal_name') ? undefined : json['legal_name'],
            'vatId': !exists(json, 'vat_id') ? undefined : json['vat_id'],
        };
    }

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

            'address_line_1': value.addressLine1,
            'address_line_2': value.addressLine2,
            'city': value.city,
            'state': value.state,
            'country': value.country,
            'zipcode': value.zipcode,
            'url': value.url,
            'logo_url': value.logoUrl,
            'email': value.email,
            'secondary_emails': value.secondaryEmails,
            'phone': value.phone,
            'legal_name': value.legalName,
            'vat_id': value.vatId,
        };
    }