All files / codegen/models ContactInfoInputArgs.ts

82.78% Statements 125/151
33.33% Branches 1/3
33.33% Functions 1/3
82.78% Lines 125/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     1x 1x                                         1x 1x 2x     2x     2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x    
/* 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 ContactInfoInputArgs
 */
export interface ContactInfoInputArgs {
    /**
     * 
     * @type {string}
     * @memberof ContactInfoInputArgs
     */
    zipcode?: string | null;
    /**
     * 
     * @type {string}
     * @memberof ContactInfoInputArgs
     */
    legalName?: string | null;
    /**
     * 
     * @type {string}
     * @memberof ContactInfoInputArgs
     */
    state?: string | null;
    /**
     * 
     * @type {string}
     * @memberof ContactInfoInputArgs
     */
    phone?: string | null;
    /**
     * 
     * @type {string}
     * @memberof ContactInfoInputArgs
     */
    country?: string | null;
    /**
     * 
     * @type {string}
     * @memberof ContactInfoInputArgs
     */
    email?: string | null;
    /**
     * 
     * @type {string}
     * @memberof ContactInfoInputArgs
     */
    vatId?: string | null;
    /**
     * 
     * @type {string}
     * @memberof ContactInfoInputArgs
     */
    city?: string | null;
    /**
     * 
     * @type {string}
     * @memberof ContactInfoInputArgs
     */
    logoUrl?: string | null;
    /**
     * 
     * @type {string}
     * @memberof ContactInfoInputArgs
     */
    addressLine2?: string | null;
    /**
     * 
     * @type {string}
     * @memberof ContactInfoInputArgs
     */
    addressLine1?: string | null;
    /**
     * List of secondary contact emails (all email communication will also be sent to these emails).
     * @type {Array<string>}
     * @memberof ContactInfoInputArgs
     */
    secondaryEmails?: Array<string> | null;
    /**
     * 
     * @type {string}
     * @memberof ContactInfoInputArgs
     */
    url?: string | null;
}
 
export function ContactInfoInputArgsFromJSON(json: any): ContactInfoInputArgs {
    return ContactInfoInputArgsFromJSONTyped(json, false);
}
 
export function ContactInfoInputArgsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactInfoInputArgs {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'zipcode': !exists(json, 'zipcode') ? undefined : json['zipcode'],
        'legalName': !exists(json, 'legal_name') ? undefined : json['legal_name'],
        'state': !exists(json, 'state') ? undefined : json['state'],
        'phone': !exists(json, 'phone') ? undefined : json['phone'],
        'country': !exists(json, 'country') ? undefined : json['country'],
        'email': !exists(json, 'email') ? undefined : json['email'],
        'vatId': !exists(json, 'vat_id') ? undefined : json['vat_id'],
        'city': !exists(json, 'city') ? undefined : json['city'],
        'logoUrl': !exists(json, 'logo_url') ? undefined : json['logo_url'],
        'addressLine2': !exists(json, 'address_line_2') ? undefined : json['address_line_2'],
        'addressLine1': !exists(json, 'address_line_1') ? undefined : json['address_line_1'],
        'secondaryEmails': !exists(json, 'secondary_emails') ? undefined : json['secondary_emails'],
        'url': !exists(json, 'url') ? undefined : json['url'],
    };
}
 
export function ContactInfoInputArgsToJSON(value?: ContactInfoInputArgs | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'zipcode': value.zipcode,
        'legal_name': value.legalName,
        'state': value.state,
        'phone': value.phone,
        'country': value.country,
        'email': value.email,
        'vat_id': value.vatId,
        'city': value.city,
        'logo_url': value.logoUrl,
        'address_line_2': value.addressLine2,
        'address_line_1': value.addressLine1,
        'secondary_emails': value.secondaryEmails,
        'url': value.url,
    };
}