@apideck/node
Version:
Apideck Node.js SDK
95 lines (90 loc) • 2.35 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.13.0
* Contact: support@apideck.com
*
* 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 } from '../runtime'
/**
* The customer this entity is linked to.
* @export
* @interface LinkedCustomer
*/
export interface LinkedCustomer {
/**
* The ID of the customer this entity is linked to.
* @type {string}
* @memberof LinkedCustomer
*/
id?: string
/**
* The display ID of the customer.
* @type {string}
* @memberof LinkedCustomer
*/
readonly display_id?: string | null
/**
* The display name of the customer.
* @type {string}
* @memberof LinkedCustomer
*/
display_name?: string | null
/**
* The name of the customer. Deprecated, use display_name instead.
* @type {string}
* @memberof LinkedCustomer
*/
name?: string
/**
* The company name of the customer.
* @type {string}
* @memberof LinkedCustomer
*/
readonly company_name?: string | null
/**
* The email address of the customer.
* @type {string}
* @memberof LinkedCustomer
*/
email?: string
}
export function LinkedCustomerFromJSON(json: any): LinkedCustomer {
return LinkedCustomerFromJSONTyped(json, false)
}
export function LinkedCustomerFromJSONTyped(
json: any,
ignoreDiscriminator: boolean
): LinkedCustomer {
if (json === undefined || json === null) {
return json
}
return {
id: !exists(json, 'id') ? undefined : json['id'],
display_id: !exists(json, 'display_id') ? undefined : json['display_id'],
display_name: !exists(json, 'display_name') ? undefined : json['display_name'],
name: !exists(json, 'name') ? undefined : json['name'],
company_name: !exists(json, 'company_name') ? undefined : json['company_name'],
email: !exists(json, 'email') ? undefined : json['email']
}
}
export function LinkedCustomerToJSON(value?: LinkedCustomer | null): any {
if (value === undefined) {
return undefined
}
if (value === null) {
return null
}
return {
id: value.id,
display_name: value.display_name,
name: value.name,
email: value.email
}
}