@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
84 lines (72 loc) • 2.68 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* Ringer Business API
* This API provides comprehensive endpoints for the Ringer Business system. It includes functionality for managing customer accounts, addresses, sites, phone numbers, payments, users, and other business resources. Operations typically require authentication and appropriate permissions.
*
* The version of the OpenAPI document: 1.0.5
* Contact: support@ringer.tel
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { AddressUserProvided } from './AddressUserProvided';
import {
AddressUserProvidedFromJSON,
AddressUserProvidedFromJSONTyped,
AddressUserProvidedToJSON,
AddressUserProvidedToJSONTyped,
} from './AddressUserProvided';
/**
* Information required to register a new customer account.
* @export
* @interface CustomerRegistrationRequest
*/
export interface CustomerRegistrationRequest {
/**
* The legal name of the company or business.
* @type {string}
* @memberof CustomerRegistrationRequest
*/
name: string;
/**
*
* @type {AddressUserProvided}
* @memberof CustomerRegistrationRequest
*/
address: AddressUserProvided;
}
/**
* Check if a given object implements the CustomerRegistrationRequest interface.
*/
export function instanceOfCustomerRegistrationRequest(value: object): value is CustomerRegistrationRequest {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('address' in value) || value['address'] === undefined) return false;
return true;
}
export function CustomerRegistrationRequestFromJSON(json: any): CustomerRegistrationRequest {
return CustomerRegistrationRequestFromJSONTyped(json, false);
}
export function CustomerRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerRegistrationRequest {
if (json == null) {
return json;
}
return {
'name': json['name'],
'address': AddressUserProvidedFromJSON(json['address']),
};
}
export function CustomerRegistrationRequestToJSON(json: any): CustomerRegistrationRequest {
return CustomerRegistrationRequestToJSONTyped(json, false);
}
export function CustomerRegistrationRequestToJSONTyped(value?: CustomerRegistrationRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'address': AddressUserProvidedToJSON(value['address']),
};
}