All files / codegen/models CustomerPortalContactInfoInputArgs.ts

70.44% Statements 112/159
100% Branches 0/0
0% Functions 0/3
70.44% Lines 112/159

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 153 154 155 156 157 158 159 160 1611x 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 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';
/**
 * 
 * @export
 * @interface CustomerPortalContactInfoInputArgs
 */
export interface CustomerPortalContactInfoInputArgs {
    /**
     * 
     * @type {string}
     * @memberof CustomerPortalContactInfoInputArgs
     */
    zipcode?: string | null;
    /**
     * 
     * @type {string}
     * @memberof CustomerPortalContactInfoInputArgs
     */
    legalName?: string | null;
    /**
     * 
     * @type {string}
     * @memberof CustomerPortalContactInfoInputArgs
     */
    state?: string | null;
    /**
     * 
     * @type {string}
     * @memberof CustomerPortalContactInfoInputArgs
     */
    phone?: string | null;
    /**
     * Customer name. Required only if using vendor API Key for authentication.
     * @type {string}
     * @memberof CustomerPortalContactInfoInputArgs
     */
    customerName?: string;
    /**
     * 
     * @type {string}
     * @memberof CustomerPortalContactInfoInputArgs
     */
    country?: string | null;
    /**
     * 
     * @type {string}
     * @memberof CustomerPortalContactInfoInputArgs
     */
    email?: string | null;
    /**
     * 
     * @type {string}
     * @memberof CustomerPortalContactInfoInputArgs
     */
    vatId?: string | null;
    /**
     * 
     * @type {string}
     * @memberof CustomerPortalContactInfoInputArgs
     */
    city?: string | null;
    /**
     * 
     * @type {string}
     * @memberof CustomerPortalContactInfoInputArgs
     */
    logoUrl?: string | null;
    /**
     * 
     * @type {string}
     * @memberof CustomerPortalContactInfoInputArgs
     */
    addressLine2?: string | null;
    /**
     * 
     * @type {string}
     * @memberof CustomerPortalContactInfoInputArgs
     */
    addressLine1?: string | null;
    /**
     * List of secondary contact emails (all email communication will also be sent to these emails).
     * @type {Array<string>}
     * @memberof CustomerPortalContactInfoInputArgs
     */
    secondaryEmails?: Array<string> | null;
    /**
     * 
     * @type {string}
     * @memberof CustomerPortalContactInfoInputArgs
     */
    url?: string | null;
}
 
export function CustomerPortalContactInfoInputArgsFromJSON(json: any): CustomerPortalContactInfoInputArgs {
    return CustomerPortalContactInfoInputArgsFromJSONTyped(json, false);
}
 
export function CustomerPortalContactInfoInputArgsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerPortalContactInfoInputArgs {
    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'],
        'customerName': !exists(json, 'customer_name') ? undefined : json['customer_name'],
        '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 CustomerPortalContactInfoInputArgsToJSON(value?: CustomerPortalContactInfoInputArgs | 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,
        'customer_name': value.customerName,
        '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,
    };
}