/* tslint:disable */ /* eslint-disable */ /** * Hathora Cloud API * Welcome to the Hathora Cloud API documentation! Learn how to use the Hathora Cloud APIs to build and scale your game servers globally. * * The version of the OpenAPI document: 0.0.1 * * * 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 Organization */ export interface Organization { /** * * @type {boolean} * @memberof Organization */ isSingleTenant: boolean; /** * * @type {string} * @memberof Organization */ stripeCustomerId: string; /** * System generated unique identifier for an organization. Not guaranteed to have a specific format. * @type {string} * @memberof Organization */ orgId: string; } /** * Check if a given object implements the Organization interface. */ export function instanceOfOrganization(value: object): boolean { let isInstance = true; isInstance = isInstance && "isSingleTenant" in value; isInstance = isInstance && "stripeCustomerId" in value; isInstance = isInstance && "orgId" in value; return isInstance; } export function OrganizationFromJSON(json: any): Organization { return OrganizationFromJSONTyped(json, false); } export function OrganizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Organization { if ((json === undefined) || (json === null)) { return json; } return { 'isSingleTenant': json['isSingleTenant'], 'stripeCustomerId': json['stripeCustomerId'], 'orgId': json['orgId'], }; } export function OrganizationToJSON(value?: Organization | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'isSingleTenant': value.isSingleTenant, 'stripeCustomerId': value.stripeCustomerId, 'orgId': value.orgId, }; }